Added tests for workgroups and for constants
This commit is contained in:
parent
711bd158ba
commit
82ee96c943
5 changed files with 262 additions and 46 deletions
15
test/shaders/glsl/test_workgroup.comp
Normal file
15
test/shaders/glsl/test_workgroup.comp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 450
|
||||
|
||||
layout (local_size_x = 1) in;
|
||||
|
||||
// The input rebuild bind index is relative to index in parameter passed
|
||||
layout(set = 0, binding = 0) writeonly buffer bout { float toutx[]; };
|
||||
layout(set = 0, binding = 1) writeonly buffer bout2 { float touty[]; };
|
||||
|
||||
void main() {
|
||||
uint index = gl_WorkGroupID.x*gl_NumWorkGroups.y + gl_WorkGroupID.y;
|
||||
|
||||
toutx[index] = gl_GlobalInvocationID.x;
|
||||
touty[index] = gl_GlobalInvocationID.y;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue