vk.subpass-input.error.hlsl 500 B

1234567891011121314151617181920212223
  1. // Run: %dxc -T ps_6_0 -E main
  2. struct S {
  3. float a;
  4. float2 b;
  5. float c;
  6. };
  7. SubpassInput SI0; // error
  8. [[vk::input_attachment_index(0)]]
  9. SubpassInput<S> SI1; // error
  10. [[vk::input_attachment_index(1)]]
  11. static SubpassInput SI2; // error
  12. void main() {
  13. }
  14. // CHECK: :9:14: error: missing vk::input_attachment_index attribute
  15. // CHECK: :12:17: error: only scalar/vector types allowed as SubpassInput(MS) parameter type
  16. // CHECK: :15:21: error: SubpassInput(MS) must be externally visible