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 GpuDeviceFeaturesprivate final GpuDevicePropertiesprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionConfigureGpuDeviceEvent(GpuDeviceProperties deviceProperties, GpuDeviceFeatures availableFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoidEnables 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.booleanlogicOp()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:GpuDeviceFeaturesLogicOp is unusably problematic on Qualcomm GPUs via OpenGL. LogicOp is unavailable on MacOS via Vulkan.- Specified by:
logicOpin interfaceGpuDeviceFeatures
-
enableLogicOp
public void enableLogicOp()Enables the LogicOp feature.Allows a
LogicOpother thanLogicOp.NONEto be specified when using aRenderPipeline.
-