Class CustomFormatRenderTarget

java.lang.Object
dev.cammiescorner.velvet.impl.CustomFormatRenderTarget

public class CustomFormatRenderTarget extends Object
Handles creating render targets with custom pixel formats.
  • Field Details

  • Constructor Details

    • CustomFormatRenderTarget

      public CustomFormatRenderTarget()
  • Method Details

    • create

      @API(status=EXPERIMENTAL) public static com.mojang.blaze3d.pipeline.RenderTarget create(int width, int height, boolean useDepth, boolean getError, CustomFormatRenderTarget.TextureFormat format)
      Experimental method to create a new render target from code, please open an issue if you actually use it

      Refer to TextureTarget for the list of parameters

    • prepareCustomFormat

      public static void prepareCustomFormat(String formatString)
      Prepares a render target creation for the given pixel format.

      Valid formats are:

      • RGBA8
      • RGBA16
      • RGBA16F
      • RGBA32F
      Parameters:
      formatString - the pixel format, as specified by CustomFormatRenderTarget.TextureFormat.decode(String)
    • getCustomFormat

      @Nullable public static CustomFormatRenderTarget.TextureFormat getCustomFormat()
    • clearCustomFormat

      public static void clearCustomFormat()