hlsl.attributeC11.frag 435 B

1234567891011121314151617181920212223
  1. struct S {
  2. float2 f;
  3. };
  4. [[vk::binding(1)]]
  5. StructuredBuffer<S> buffer1;
  6. [[vk::binding(3, 2)]]
  7. StructuredBuffer<S> buffer3;
  8. [[vk::input_attachment_index(4)]]
  9. Texture2D<float4> attach;
  10. [[vk::constant_id(13)]] const int ci = 11;
  11. [[vk::push_constant]] cbuffer pcBuf { int a; };
  12. [[vk::location(7)]] float4
  13. main([[vk::location(8)]] float4 input: A) : B
  14. {
  15. return input + attach.Load(float2(0.5));// * a;
  16. }