Class VulkanGpuTexture

java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.vulkan.VulkanGpuTexture
All Implemented Interfaces:
Destroyable, AutoCloseable

public class VulkanGpuTexture extends GpuTexture implements Destroyable
  • Field Details

    • device

      private final VulkanDevice 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:
      destroy in interface Destroyable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class GpuTexture
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in class GpuTexture
    • addViews

      public void addViews()
    • removeViews

      public void removeViews()
    • vkImage

      public long vkImage()