sample2.hlsl 349 B

123456789101112131415161718192021
  1. // RUN: %fxc /T ps_5_0 %s /Fo %t.dxbc
  2. // RUN: %dxbc2dxil %t.dxbc /emit-llvm /o %t.ll.converted
  3. // RUN: fc %b.ref %t.ll.converted
  4. cbuffer Foo
  5. {
  6. float4 g0;
  7. float4 g1;
  8. float4 g2;
  9. };
  10. SamplerState samp1 : register(s5);
  11. Texture2D<float2> text1 : register(t3);
  12. float2 main(float2 a : A) : SV_Target
  13. {
  14. return text1.Sample(samp1, a) + g2.xy;
  15. }