Slight attempt improve detection, and dont fking require the extensions in the no extension workaround shader ;-;
This commit is contained in:
@@ -47,9 +47,10 @@ public class Capabilities {
|
||||
this.subgroup = testShaderCompilesOk(ShaderType.COMPUTE, """
|
||||
#version 430
|
||||
#extension GL_KHR_shader_subgroup_basic : require
|
||||
#extension GL_KHR_shader_subgroup_arithmetic : require
|
||||
layout(local_size_x=32) in;
|
||||
void main() {
|
||||
uint64_t a = 1234;
|
||||
uint a = subgroupExclusiveAdd(gl_LocalInvocationIndex);
|
||||
}
|
||||
""");
|
||||
} else {
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
#version 460
|
||||
|
||||
#extension GL_KHR_shader_subgroup_basic : require
|
||||
#extension GL_KHR_shader_subgroup_arithmetic: require
|
||||
|
||||
#define WORK_SIZE 256
|
||||
|
||||
//Does inital parralel prefix sum on batches of WORK_SIZE
|
||||
|
||||
Reference in New Issue
Block a user