2022-11-13 00:27:10 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout (local_size_x = 8) in;
|
2024-06-06 05:47:06 +00:00
|
|
|
layout (set = 1, binding = 0) buffer outBuffer
|
2022-11-13 00:27:10 +00:00
|
|
|
{
|
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;
|
|
|
|
}
|