Initial commit
This commit is contained in:
29
binaries/assets/shaders/addition2.comp
Normal file
29
binaries/assets/shaders/addition2.comp
Normal file
@@ -0,0 +1,29 @@
|
||||
#version 460
|
||||
|
||||
|
||||
//shared float shareData[1024]; // Shared between all threads in work group.
|
||||
|
||||
layout ( local_size_x = 10, local_size_y = 10, local_size_z = 1 ) in;
|
||||
|
||||
|
||||
|
||||
layout( std430, binding = 2 ) buffer outputBlock2 {
|
||||
|
||||
vec2 array_d[ 100 ];
|
||||
|
||||
};
|
||||
|
||||
layout( std430, binding = 1 ) buffer outputBlock {
|
||||
|
||||
vec2 array_c[ 100 ];
|
||||
|
||||
};
|
||||
|
||||
void main() {
|
||||
|
||||
uint index = gl_LocalInvocationIndex;
|
||||
|
||||
array_d[ index ] = array_c[ index ];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user