Class BaseGpuTexture
java.lang.Object
com.mojang.renderpearl.backend.common.BaseGpuTexture
- All Implemented Interfaces:
GpuTexture, UncheckedAutoCloseable, AutoCloseable
- Direct Known Subclasses:
GlTexture, VulkanGpuTexture
-
Nested Class Summary
Nested classes/interfaces inherited from interface GpuTexture
GpuTexture.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final GpuFormatprivate final intprivate final Stringprivate final intprivate final intprivate final intFields inherited from interface GpuTexture
USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING -
Constructor Summary
ConstructorsConstructorDescriptionBaseGpuTexture(int usage, String label, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GpuTexture
isClosedMethods inherited from interface UncheckedAutoCloseable
close
-
Field Details
-
format
-
width
private final int width -
height
private final int height -
depthOrLayers
private final int depthOrLayers -
mipLevels
private final int mipLevels -
usage
private final int usage -
label
-
-
Constructor Details
-
BaseGpuTexture
-
-
Method Details
-
getWidth
public int getWidth(int mipLevel) - Specified by:
getWidthin interfaceGpuTexture
-
getHeight
public int getHeight(int mipLevel) - Specified by:
getHeightin interfaceGpuTexture
-
getDepthOrLayers
public int getDepthOrLayers()- Specified by:
getDepthOrLayersin interfaceGpuTexture
-
getMipLevels
public int getMipLevels()- Specified by:
getMipLevelsin interfaceGpuTexture
-
getFormat
- Specified by:
getFormatin interfaceGpuTexture
-
usage
public int usage()- Specified by:
usagein interfaceGpuTexture
-
getLabel
- Specified by:
getLabelin interfaceGpuTexture
-