Package dev.cammiescorner.velvet.impl
Class CustomFormatRenderTarget
java.lang.Object
dev.cammiescorner.velvet.impl.CustomFormatRenderTarget
Handles creating render targets with custom pixel formats.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic com.mojang.blaze3d.pipeline.RenderTargetcreate(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 itstatic voidprepareCustomFormat(String formatString) Prepares a render target creation for the given pixel format.
-
Field Details
-
FORMAT_KEY
- See Also:
-
-
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 itRefer to
TextureTargetfor the list of parameters -
prepareCustomFormat
Prepares a render target creation for the given pixel format.Valid formats are:
- RGBA8
- RGBA16
- RGBA16F
- RGBA32F
- Parameters:
formatString- the pixel format, as specified byCustomFormatRenderTarget.TextureFormat.decode(String)
-
getCustomFormat
-
clearCustomFormat
public static void clearCustomFormat()
-