Skip to content

Commit

Permalink
correct recently added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateeeeeee committed Jul 13, 2024
1 parent 75180ca commit f6dcdde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/clang/test/SemaHLSL/heap-assignments.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ void TestResourceDescriptorHeap()
SamplerState s1 = ResourceDescriptorHeap[0]; // expected-error{{cannot initialize a variable of type 'SamplerState' with an rvalue of type 'const .Resource'}}
SamplerComparisonState s2 = ResourceDescriptorHeap[0]; // expected-error{{cannot initialize a variable of type 'SamplerComparisonState' with an rvalue of type 'const .Resource'}}

Texture1D<float> t1 = SamplerDescriptorHeap[0];
RWTexture1D<float> t2 = SamplerDescriptorHeap[0];
Texture2D<float> t3 = SamplerDescriptorHeap[0];
RWTexture2D<float> t4 = SamplerDescriptorHeap[0];
Texture1D<float> t1 = ResourceDescriptorHeap[0];
RWTexture1D<float> t2 = ResourceDescriptorHeap[0];
Texture2D<float> t3 = ResourceDescriptorHeap[0];
RWTexture2D<float> t4 = ResourceDescriptorHeap[0];
Texture3D<float> t5 = ResourceDescriptorHeap[0];
RWTexture3D<float> t6 = ResourceDescriptorHeap[0];

Expand Down

0 comments on commit f6dcdde

Please sign in to comment.