Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
- Mappings:
Namespace Name named com/mojang/blaze3d/vertex/VertexFormat
intermediary com/mojang/blaze3d/vertex/VertexFormat
official com/mojang/blaze3d/vertex/VertexFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<VertexFormatElement> private final int
private final int[]
static final int
private static final boolean
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionVertexFormat
(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexFormat.Builder
builder()
boolean
contains
(VertexFormatElement element) boolean
getElementName
(VertexFormatElement element) int
int
getOffset
(VertexFormatElement element) int[]
int
int
hashCode()
toString()
uploadImmediateIndexBuffer
(ByteBuffer byteBuffer) uploadImmediateVertexBuffer
(ByteBuffer byteBuffer) private static GpuBuffer
uploadToBuffer
(@Nullable GpuBuffer gpuBuffer, ByteBuffer byteBuffer, int int2, Supplier<String> supplier) private GpuBuffer
uploadToBufferWithWorkaround
(@Nullable GpuBuffer gpuBuffer, ByteBuffer byteBuffer, int int2, Supplier<String> supplier)
-
Field Details
-
UNKNOWN_ELEMENT
public static final int UNKNOWN_ELEMENT- See Also:
-
USE_STAGING_BUFFER_WORKAROUND
private static final boolean USE_STAGING_BUFFER_WORKAROUND -
UPLOAD_STAGING_BUFFER
-
elements
-
names
-
vertexSize
private final int vertexSize -
elementsMask
private final int elementsMask -
offsetsByElement
private final int[] offsetsByElement -
immediateDrawVertexBuffer
-
immediateDrawIndexBuffer
-
-
Constructor Details
-
VertexFormat
VertexFormat(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSize) - Mappings:
Namespace Name Mixin selector named <init>
Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
intermediary <init>
Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
official <init>
Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
-
-
Method Details
-
builder
-
toString
-
getVertexSize
public int getVertexSize() -
getElements
-
getElementAttributeNames
-
getOffsetsByElement
public int[] getOffsetsByElement() -
getOffset
- Mappings:
Namespace Name Mixin selector named getOffset
Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
intermediary getOffset
Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
official getOffset
Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
intermediary contains
Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
official contains
Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
-
getElementsMask
public int getElementsMask() -
getElementName
- Mappings:
Namespace Name Mixin selector named getElementName
Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
intermediary getElementName
Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
official getElementName
Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
-
equals
- Overrides:
equals
in classObject
- Mappings:
Namespace Name Mixin selector named equals
Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
intermediary equals
Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
official equals
Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode() -
uploadToBuffer
-
uploadToBufferWithWorkaround
-
uploadImmediateVertexBuffer
-
uploadImmediateIndexBuffer
-