bgfx/3rdparty/glslang/Test/hlsl.attributeC11.frag
Branimir Karadžić a6daca505b Updated glslang.
2017-10-07 00:52:44 -07:00

19 lines
331 B
GLSL

struct S {
float2 f;
};
[[vk::binding(1)]]
StructuredBuffer<S> buffer1;
[[vk::binding(3, 2)]]
StructuredBuffer<S> buffer3;
[[vk::input_attachment_index(4)]]
Texture2D<float4> attach;
[[vk::location(7)]] float4
main([[vk::location(8)]] float4 input: A) : B
{
return input + attach.Load(float2(0.5));
}