Class ConfigureGpuDeviceEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ConfigureGpuDeviceEvent
- All Implemented Interfaces:
IModBusEvent
,GpuDeviceFeatures
public class ConfigureGpuDeviceEvent
extends net.neoforged.bus.api.Event
implements IModBusEvent, GpuDeviceFeatures
Fired during GpuDevice creation to allow optional features to be enabled.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuDeviceFeatures
private final GpuDeviceProperties
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionConfigureGpuDeviceEvent
(GpuDeviceProperties deviceProperties, GpuDeviceFeatures availableFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enables the LogicOp feature.Device features available for use, use this to adapt what features your mod enables and uses based on what is available.Device features available.boolean
logicOp()
LogicOp is unusably problematic on Qualcomm GPUs via OpenGL.
-
Field Details
-
deviceProperties
-
availableFeatures
-
logicOp
private boolean logicOp
-
-
Constructor Details
-
ConfigureGpuDeviceEvent
public ConfigureGpuDeviceEvent(GpuDeviceProperties deviceProperties, GpuDeviceFeatures availableFeatures)
-
-
Method Details
-
getDeviceProperties
Device features available.
This is constant for the entire GpuDevice's lifetime and may be cached for future use. -
getAvailableFeatures
Device features available for use, use this to adapt what features your mod enables and uses based on what is available. -
logicOp
public boolean logicOp()Description copied from interface:GpuDeviceFeatures
LogicOp is unusably problematic on Qualcomm GPUs via OpenGL. LogicOp is unavailable on MacOS via Vulkan.- Specified by:
logicOp
in interfaceGpuDeviceFeatures
-
enableLogicOp
public void enableLogicOp()Enables the LogicOp feature.Allows a
LogicOp
other thanLogicOp.NONE
to be specified when using aRenderPipeline
.
-