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 Details

  • Constructor Details

  • Method Details

    • getDeviceProperties

      public GpuDeviceProperties getDeviceProperties()
      Device features available.
      This is constant for the entire GpuDevice's lifetime and may be cached for future use.
    • getAvailableFeatures

      public GpuDeviceFeatures 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 interface GpuDeviceFeatures
    • enableLogicOp

      public void enableLogicOp()
      Enables the LogicOp feature.

      Allows a LogicOp other than LogicOp.NONE to be specified when using a RenderPipeline.