Added tests for workgroups and for constants

This commit is contained in:
Alejandro Saucedo 2021-02-14 16:47:43 +00:00
parent 711bd158ba
commit 82ee96c943
5 changed files with 262 additions and 46 deletions

View 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;
}