start on no subgroup impl
This commit is contained in:
@@ -29,6 +29,11 @@ public class VoxyClient implements ClientModInitializer {
|
||||
BudgetBufferRenderer.init();
|
||||
|
||||
VoxyCommon.setInstanceFactory(VoxyClientInstance::new);
|
||||
|
||||
if (!Capabilities.INSTANCE.subgroup) {
|
||||
Logger.warn("GPU does not support subgroup operations, expect some performance degradation");
|
||||
}
|
||||
|
||||
} else {
|
||||
Logger.error("Voxy is unsupported on your system.");
|
||||
}
|
||||
|
||||
@@ -24,10 +24,12 @@ public class Capabilities {
|
||||
public final boolean compute;
|
||||
public final boolean indirectParameters;
|
||||
public final boolean isIntel;
|
||||
public final boolean subgroup;
|
||||
|
||||
public Capabilities() {
|
||||
var cap = GL.getCapabilities();
|
||||
this.compute = cap.glDispatchComputeIndirect != 0;
|
||||
this.subgroup = cap.GL_KHR_shader_subgroup;
|
||||
this.indirectParameters = cap.glMultiDrawElementsIndirectCountARB != 0;
|
||||
this.repFragTest = cap.GL_NV_representative_fragment_test;
|
||||
this.meshShaders = cap.GL_NV_mesh_shader;
|
||||
|
||||
Reference in New Issue
Block a user