Enum Class FramebufferAttachmentDefinition.Format
java.lang.Object
java.lang.Enum<FramebufferAttachmentDefinition.Format>
foundry.veil.api.client.render.framebuffer.FramebufferAttachmentDefinition.Format
- All Implemented Interfaces:
Serializable,Comparable<FramebufferAttachmentDefinition.Format>,Constable
- Enclosing class:
FramebufferAttachmentDefinition
public static enum FramebufferAttachmentDefinition.Format
extends Enum<FramebufferAttachmentDefinition.Format>
The formats for attachments.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FramebufferAttachmentDefinition.Format> static final FramebufferAttachmentDefinition.Format[] -
Method Summary
Modifier and TypeMethodDescriptionintintResolves the concrete depth format used by Minecraft's main render target.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED
-
RG
-
RGB
-
BGR
-
RGBA
-
BGRA
-
DEPTH_COMPONENT
-
DEPTH_STENCIL
-
R8
-
R8_SNORM
-
R16
-
R16_SNORM
-
RG8
-
RG8_SNORM
-
RG16
-
RG16_SNORM
-
R3_G3_B2
-
RGB4
-
RGB5
-
RGB565
-
RGB8
-
RGB8_SNORM
-
RGB10
-
RGB12
-
RGB16
-
RGB16_SNORM
-
RGBA2
-
RGBA4
-
RGB5_A1
-
RGBA8
-
RGBA8_SNORM
-
RGB10_A2
-
RGB10_A2UI
-
RGBA12
-
RGBA16
-
RGBA16_SNORM
-
SRGB
-
SRGB8
-
SRGB_ALPHA
-
SRGB8_ALPHA8
-
COMPRESSED_SRGB
-
COMPRESSED_SRGB_ALPHA
-
R16F
-
RG16F
-
RGB16F
-
RGBA16F
-
R32F
-
RG32F
-
RGB32F
-
RGB9_E5
-
RGBA32F
-
R11F_G11F_B10F
-
R8I
-
R8UI
-
R16I
-
R16UI
-
R32I
-
R32UI
-
RG8I
-
RG8UI
-
RG16I
-
RG16UI
-
RG32I
-
RG32UI
-
RGB8I
-
RGB8UI
-
RGB16I
-
RGB16UI
-
RGB32I
-
RGB32UI
-
RGBA8I
-
RGBA8UI
-
RGBA16I
-
RGBA16UI
-
RGBA32I
-
RGBA32UI
-
DEPTH_COMPONENT16
-
DEPTH_COMPONENT24
-
DEPTH_COMPONENT32
-
DEPTH_COMPONENT32F
-
DEPTH24_STENCIL8
-
DEPTH32F_STENCIL8
-
-
Field Details
-
VALUES
-
CODEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMainDepthFormat
public static FramebufferAttachmentDefinition.Format getMainDepthFormat(FramebufferAttachmentDefinition.Format fallback) Resolves the concrete depth format used by Minecraft's main render target.
Unsized formats such as
DEPTH_COMPONENTleave the choice of a concrete format to the driver, and mods like TACZ enable stencil on the main target, which changes it toDEPTH32F_STENCIL8.glBlitFramebufferrequires depth formats to match exactly, so framebuffers that exchange depth with the main render target have to use whatever format that target actually has.- Parameters:
fallback- The format to use when the main render target cannot be inspected- Returns:
- The depth format of the main render target
-
getFormat
public int getFormat()- Returns:
- The OpenGL id of this format
-
getInternalFormat
public int getInternalFormat()- Returns:
- The OpenGL id of this internal format
-