Class VulkanGpuTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.vulkan.VulkanGpuTexture
- All Implemented Interfaces:
Destroyable, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class GpuTexture
GpuTexture.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final VulkanDeviceprivate intprivate final longprivate final longFields inherited from class 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 GpuTexture
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 classGpuTexture
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classGpuTexture
-
addViews
public void addViews() -
removeViews
public void removeViews() -
vkImage
public long vkImage()
-