14 lines
187 B
Plaintext
14 lines
187 B
Plaintext
|
#version 450
|
||
|
|
||
|
layout (local_size_x = 8) in;
|
||
|
layout (set = 0, binding = 0) buffer outBuffer
|
||
|
{
|
||
|
float squares[];
|
||
|
};
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
uint n = gl_GlobalInvocationID.x;
|
||
|
squares[n] = n * n;
|
||
|
}
|