2022-11-13 00:27:10 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout (local_size_x = 8) in;
|
|
|
|
layout (set = 0, binding = 0) buffer outBuffer
|
|
|
|
{
|
2022-12-28 20:31:08 +00:00
|
|
|
uint squares[];
|
2022-11-13 00:27:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
uint n = gl_GlobalInvocationID.x;
|
|
|
|
squares[n] = n * n;
|
|
|
|
}
|