rootSigDefine10.hlsl 372 B

12345678910111213
  1. // RUN: %dxc -E main -T ps_6_0 -rootsig-define RS %s | FileCheck %s
  2. // Test root signature define error: missing descriptor range.
  3. // CHECK: error: validation errors
  4. // CHECK: Root Signature in DXIL container is not compatible with shader
  5. #define RS DescriptorTable(SRV(t0))
  6. Texture1D<float> tex : register(t3);
  7. float main(float i : I) : SV_Target
  8. {
  9. return tex[i];
  10. }