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, """
|
this.subgroup = testShaderCompilesOk(ShaderType.COMPUTE, """
|
||||||
#version 430
|
#version 430
|
||||||
#extension GL_KHR_shader_subgroup_basic : require
|
#extension GL_KHR_shader_subgroup_basic : require
|
||||||
|
#extension GL_KHR_shader_subgroup_arithmetic : require
|
||||||
layout(local_size_x=32) in;
|
layout(local_size_x=32) in;
|
||||||
void main() {
|
void main() {
|
||||||
uint64_t a = 1234;
|
uint a = subgroupExclusiveAdd(gl_LocalInvocationIndex);
|
||||||
}
|
}
|
||||||
""");
|
""");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#version 460
|
#version 460
|
||||||
|
|
||||||
#extension GL_KHR_shader_subgroup_basic : require
|
|
||||||
#extension GL_KHR_shader_subgroup_arithmetic: require
|
|
||||||
|
|
||||||
#define WORK_SIZE 256
|
#define WORK_SIZE 256
|
||||||
|
|
||||||
//Does inital parralel prefix sum on batches of WORK_SIZE
|
//Does inital parralel prefix sum on batches of WORK_SIZE
|
||||||
|
|||||||
Reference in New Issue
Block a user