diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-12 11:30:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-12 11:30:43 -0700 |
| commit | 6101e483ae8ea9e10db2b5a9423af3cc7fafb710 (patch) | |
| tree | a3d8f4f8873946f58111ae5e7f5034b071c1e824 /tests/reflection/multi-file-extra.hlsl | |
| parent | 88f451cfafbf3a30033e750873c79f761b2bd1a5 (diff) | |
| parent | 74963469a169b49d61196e3a3b33a903ea8bfede (diff) | |
Merge pull request #79 from tfoleyNV/sample-rate-reflection
Sample rate reflection
Diffstat (limited to 'tests/reflection/multi-file-extra.hlsl')
| -rw-r--r-- | tests/reflection/multi-file-extra.hlsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reflection/multi-file-extra.hlsl b/tests/reflection/multi-file-extra.hlsl index 569ec2ce9..a5da70635 100644 --- a/tests/reflection/multi-file-extra.hlsl +++ b/tests/reflection/multi-file-extra.hlsl @@ -18,7 +18,7 @@ float4 use(float val) { return val; }; float4 use(float2 val) { return float4(val,0.0,0.0); }; float4 use(float3 val) { return float4(val,0.0); }; float4 use(float4 val) { return val; }; -float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); } +float4 use(Texture2D t, SamplerState s) { return t.SampleLevel(s, 0.0, 0.0); } // Start with some parameters that will appear in both shaders Texture2D sharedT; @@ -51,7 +51,7 @@ Texture2D sharedTV; Texture2D sharedTF; -float4 main() : SV_Target +float4 mainVS() : SV_Position { // Go ahead and use everything here, just to make sure things got placed correctly return use(sharedT, sharedS) |
