Require fixed workgroup size declaration
Fix 2479.
This commit is contained in:
parent
9801a9e42a
commit
1c62806468
5 changed files with 99 additions and 0 deletions
12
Test/negativeWorkGroupSize.comp
Normal file
12
Test/negativeWorkGroupSize.comp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 460
|
||||
|
||||
void fn(){
|
||||
uvec3 wgs = gl_WorkGroupSize; // error: fixed workgroup size has not been declared
|
||||
}
|
||||
|
||||
layout(local_size_x = 64) in; // declare workgroup size
|
||||
|
||||
void main(){
|
||||
fn();
|
||||
uvec3 wgs = gl_WorkGroupSize; // valid
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue