Class VulkanLWJGLMappedMemory
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLMappedMemory
- All Implemented Interfaces:
VulkanMappedMemoryType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable
A section of mapped memory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unmap the memory.voidflush()Flush this mapped memory.voidflushRange(long offset, long size) Flush the given memory range.booleanisClosed()booleanisMapped()
-
Method Details
-
isMapped
public boolean isMapped()- Specified by:
isMappedin interfaceVulkanMappedMemoryType- Returns:
trueiffVulkanMappedMemoryType.close()has not been called
-
flushRange
Description copied from interface:VulkanMappedMemoryTypeFlush the given memory range.- Specified by:
flushRangein interfaceVulkanMappedMemoryType- Parameters:
offset- The offsetsize- The size- Throws:
VulkanException- On errors- See Also:
-
flush
Description copied from interface:VulkanMappedMemoryTypeFlush this mapped memory.- Specified by:
flushin interfaceVulkanMappedMemoryType- Throws:
VulkanException- On errors- See Also:
-
close
public void close()Description copied from interface:VulkanMappedMemoryTypeUnmap the memory.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanMappedMemoryType
-
asByteBuffer
- Specified by:
asByteBufferin interfaceVulkanMappedMemoryType- Returns:
- The mapped memory as a byte buffer
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfacecom.io7m.jmulticlose.core.CloseableType
-