rootSigDefine11.hlsl 427 B

1234567891011121314
  1. // RUN: %dxc -E main -T ps_6_0 -rootsig-define RS %s
  2. // Test root signature define overrides root signature attribute.
  3. // Put an invalid root signature in the attribute and a valid one in the
  4. // define. If compilation succeeds then the valid root signature was used.
  5. Texture1D<float> tex : register(t3);
  6. #define RS DescriptorTable(SRV(t3))
  7. [RootSignature("SRV(t0)")]
  8. float main(float i : I) : SV_Target
  9. {
  10. return tex[i];
  11. }