vk.attribute.invalid.hlsl 246 B

1234567891011121314
  1. // Run: %dxc -T vs_6_0 -E main
  2. struct S {
  3. float f;
  4. };
  5. [[vk::push_constant, vk::binding(5)]]
  6. S pcs;
  7. float main() : A {
  8. return 1.0;
  9. }
  10. // CHECK: :7:3: error: vk::push_constant attribute cannot be used together with vk::binding attribute