Class BaseGpuTextureView
java.lang.Object
com.mojang.renderpearl.backend.common.BaseGpuTextureView
- All Implemented Interfaces:
GpuTextureView, UncheckedAutoCloseable, AutoCloseable
- Direct Known Subclasses:
GlTextureView, VulkanGpuTextureView
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseGpuTextureView(GpuTexture texture, int baseMipLevel, int mipLevels) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GpuTextureView
isClosedMethods inherited from interface UncheckedAutoCloseable
close
-
Field Details
-
texture
-
baseMipLevel
private final int baseMipLevel -
mipLevels
private final int mipLevels
-
-
Constructor Details
-
BaseGpuTextureView
-
-
Method Details
-
texture
- Specified by:
texturein interfaceGpuTextureView
-
baseMipLevel
public int baseMipLevel()- Specified by:
baseMipLevelin interfaceGpuTextureView
-
mipLevels
public int mipLevels()- Specified by:
mipLevelsin interfaceGpuTextureView
-
getWidth
public int getWidth(int mipLevel) - Specified by:
getWidthin interfaceGpuTextureView
-
getHeight
public int getHeight(int mipLevel) - Specified by:
getHeightin interfaceGpuTextureView
-