| 1 |
#version 450 |
| 2 |
|
| 3 |
struct VertexOutput |
| 4 |
{ |
| 5 |
vec4 HPosition; |
| 6 |
}; |
| 7 |
|
| 8 |
struct TestStruct |
| 9 |
{ |
| 10 |
vec3 position; |
| 11 |
float radius; |
| 12 |
}; |
| 13 |
|
| 14 |
layout(binding = 0, std140) uniform CB0 |
| 15 |
{ |
| 16 |
TestStruct CB0[16]; |
| 17 |
} _24; |
| 18 |
|
| 19 |
layout(location = 0) out vec4 _entryPointOutput; |
| 20 |
|
| 21 |
vec4 _main(VertexOutput IN) |
| 22 |
{ |
| 23 |
TestStruct st; |
| 24 |
st.position = _24.CB0[1].position; |
| 25 |
st.radius = _24.CB0[1].radius; |
| 26 |
vec4 col = vec4(st.position, st.radius); |
| 27 |
return col; |
| 28 |
} |
| 29 |
|
| 30 |
void main() |
| 31 |
{ |
| 32 |
VertexOutput IN; |
| 33 |
IN.HPosition = gl_FragCoord; |
| 34 |
VertexOutput param = IN; |
| 35 |
_entryPointOutput = _main(param); |
| 36 |
} |