Package com.mojang.blaze3d.textures
Class GpuTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GlTexture
- Mappings:
Namespace Name named com/mojang/blaze3d/textures/GpuTextureintermediary com/mojang/blaze3d/textures/GpuTextureofficial com/mojang/blaze3d/textures/GpuTexture
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final TextureFormatprivate final intprivate final Stringprivate final intprivate final @com.mojang.blaze3d.textures.GpuTexture.class_12115 intstatic final intstatic final intstatic final intstatic final intstatic final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionGpuTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) -
Method Summary
-
Field Details
-
USAGE_COPY_DST
public static final int USAGE_COPY_DST- See Also:
-
USAGE_COPY_SRC
public static final int USAGE_COPY_SRC- See Also:
-
USAGE_TEXTURE_BINDING
public static final int USAGE_TEXTURE_BINDING- See Also:
-
USAGE_RENDER_ATTACHMENT
public static final int USAGE_RENDER_ATTACHMENT- See Also:
-
USAGE_CUBEMAP_COMPATIBLE
public static final int USAGE_CUBEMAP_COMPATIBLE- See Also:
-
format
-
width
private final int width -
height
private final int height -
depthOrLayers
private final int depthOrLayers -
mipLevels
private final int mipLevels -
usage
private final @com.mojang.blaze3d.textures.GpuTexture.class_12115 int usage -
label
-
-
Constructor Details
-
GpuTexture
public GpuTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) - Mappings:
Namespace Name Mixin selector named <init>Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)Vintermediary <init>Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)Vofficial <init>Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
-
-
Method Details
-
getWidth
public int getWidth(int mipLevel) - Mappings:
Namespace Name Mixin selector named getWidthLcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)Iintermediary getWidthLcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)Iofficial getWidthLcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
-
getHeight
public int getHeight(int mipLevel) - Mappings:
Namespace Name Mixin selector named getHeightLcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)Iintermediary getHeightLcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)Iofficial getHeightLcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
-
getDepthOrLayers
public int getDepthOrLayers() -
getMipLevels
public int getMipLevels() -
getFormat
-
usage
public int usage() -
getLabel
-
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-
isClosed
public abstract boolean isClosed()
-