Class VFakeBuffer

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

public final class VFakeBuffer extends Object implements VulkanBufferType
A fake buffer.
  • Constructor Details

    • VFakeBuffer

      public VFakeBuffer(VulkanBufferCreateInfo inCreateInfo)
      A fake buffer.
      Parameters:
      inCreateInfo - The creation info
  • Method Details

    • createInfo

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

      public void bindMemory(VulkanDeviceMemoryType inMemory, long inOffset)
      Bind device memory to the buffer.
      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 VulkanBufferType
      Specified by:
      close in interface VulkanHandleType
    • isClosed

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