17 lines
322 B
Plaintext
17 lines
322 B
Plaintext
#version 450
|
|
struct T1
|
|
{
|
|
vec3 a;
|
|
float b;
|
|
};
|
|
|
|
layout(std430, binding = 1) buffer Buffer0 { T1 buf0[]; };
|
|
layout(std430, binding = 2) buffer Buffer1 { float buf1[]; };
|
|
|
|
layout(local_size_x = 32, local_size_y = 1, local_size_z = 1) in;
|
|
void main()
|
|
{
|
|
float x = buf0[0].b;
|
|
buf1[gl_GlobalInvocationID.x] = x;
|
|
}
|