Class VFakeImage

java.lang.Object
com.io7m.jcoronado.fake.VFakeImage
All Implemented Interfaces:
VulkanHandleNonDispatchableType, VulkanHandleType, VulkanImageType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable

public final class VFakeImage extends Object implements VulkanImageType
A fake image.
  • Constructor Details

    • VFakeImage

      public VFakeImage(VulkanImageCreateInfo inCreateInfo)
      A fake image.
      Parameters:
      inCreateInfo - The creation info
  • Method Details

    • createInfo

      public VulkanImageCreateInfo createInfo()
      Returns:
      The creation info
    • bindMemory

      public void bindMemory(VulkanDeviceMemoryType inMemory, long inOffset)
      Bind device memory to the image.
      Parameters:
      inMemory - The memory
      inOffset - The offset
    • boundMemory

      public Optional<VulkanDeviceMemoryType> boundMemory()
      Returns:
      The bound device memory, if any
    • boundMemoryOffset

      public long boundMemoryOffset()
      Returns:
      The bound memory offset
    • close

      public void close()
      Description copied from interface: VulkanHandleType
      Destroy the object.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface VulkanHandleType
      Specified by:
      close in interface VulkanImageType
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface com.io7m.jmulticlose.core.CloseableType