com.mojang.blaze3d.textures

public abstract class GpuTexture

implements AutoCloseable

com.mojang.renderpearl.api.textures.GpuTexture
net.minecraft.class_1_1231
com.mojang.blaze3d.textures.GpuTexture

Field summary

Modifier and TypeField
public static final int
USAGE_COPY_DST
field_1_8538
USAGE_COPY_DST
public static final int
USAGE_COPY_SRC
field_1_8539
USAGE_COPY_SRC
public static final int
USAGE_TEXTURE_BINDING
field_1_8542
USAGE_TEXTURE_BINDING
public static final int
USAGE_RENDER_ATTACHMENT
field_1_8541
USAGE_RENDER_ATTACHMENT
public static final int
USAGE_CUBEMAP_COMPATIBLE
field_1_8540
USAGE_CUBEMAP_COMPATIBLE
private final TexelFormat
format
field_1_8544
format
private final int
width
field_1_8549
width
private final int
height
field_1_8545
height
private final int
depthOrLayers
field_1_8543
depthOrLayers
private final int
mipLevels
field_1_8547
mipLevels
private final int
usage
field_1_8548
usage
private final String
label
field_1_8546
label

Constructor summary

ModifierConstructor
public (int usage, String label, TexelFormat format, int width, int height, int depthOrLayers, int mipLevels)

Method summary

Modifier and TypeMethod
public int
getWidth(int mipLevel)
method_1_7822(int arg0)
getWidth(int mipLevel)
public int
getHeight(int mipLevel)
method_1_7819(int arg0)
getHeight(int mipLevel)
public int
getDepthOrLayers()
method_1_7817()
getDepthOrLayers()
public int
getMipLevels()
method_1_7821()
getMipLevels()
public TexelFormat
getFormat()
method_1_7818()
getTexelFormat()
public int
usage()
method_1_7824()
getUsage()
public String
getLabel()
method_1_7820()
getLabel()
public abstract void
close()
public abstract boolean
isClosed()
method_1_7823()
isClosed()