Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.attributeC11.frag
1 struct S {\r
2     float2 f;\r
3 };\r
4 \r
5 [[vk::binding(1)]]\r
6 StructuredBuffer<S> buffer1;\r
7 \r
8 [[vk::binding(3, 2)]]\r
9 StructuredBuffer<S> buffer3;\r
10 \r
11 [[vk::input_attachment_index(4)]]\r
12 Texture2D<float4> attach;\r
13 \r
14 [[vk::constant_id(13)]] const int ci = 11;\r
15 \r
16 [[vk::push_constant]] cbuffer pcBuf { int a; };\r
17 \r
18 [[vk::location(7)]] float4\r
19 main([[vk::location(8)]] float4 input: A) : B\r
20 {\r
21     return input + attach.Load(float2(0.5));// * a;\r
22 }\r