Class VulkanGpuTexture
java.lang.Object
com.mojang.renderpearl.backend.common.BaseGpuTexture
com.mojang.renderpearl.backend.vulkan.VulkanGpuTexture
- All Implemented Interfaces:
GpuTexture, Destroyable, UncheckedAutoCloseable, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface GpuTexture
GpuTexture.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final VulkanDeviceprivate intprivate final longprivate final longFields inherited from interface GpuTexture
USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING -
Constructor Summary
ConstructorsConstructorDescriptionVulkanGpuTexture(VulkanDevice device, int usage, String label, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels) -
Method Summary
Methods inherited from class BaseGpuTexture
getDepthOrLayers, getFormat, getHeight, getLabel, getMipLevels, getWidth, usage
-
Field Details
-
device
-
vkImage
private final long vkImage -
vmaAllocation
private final long vmaAllocation -
closed
private boolean closed -
views
private int views
-
-
Constructor Details
-
VulkanGpuTexture
public VulkanGpuTexture(VulkanDevice device, int usage, String label, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceGpuTexture
-
addViews
public void addViews() -
removeViews
public void removeViews() -
vkImage
public long vkImage()
-