Interface VulkanMappedMemoryType
- All Superinterfaces:
AutoCloseable, com.io7m.jmulticlose.core.CloseableType
- All Known Subinterfaces:
VMAMappedMemoryType
- All Known Implementing Classes:
VulkanLWJGLMappedMemory
public interface VulkanMappedMemoryType
extends com.io7m.jmulticlose.core.CloseableType
A pointer to an area 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.booleanisMapped()Methods inherited from interface com.io7m.jmulticlose.core.CloseableType
isClosed
-
Method Details
-
isMapped
boolean isMapped()- Returns:
trueiffclose()has not been called
-
flushRange
Flush the given memory range.- Parameters:
offset- The offsetsize- The size- Throws:
VulkanException- On errors- See Also:
-
flush
Flush this mapped memory.- Throws:
VulkanException- On errors- See Also:
-
close
Unmap the memory.- Specified by:
closein interfaceAutoCloseable- Throws:
VulkanException- On errors
-
asByteBuffer
ByteBuffer asByteBuffer()- Returns:
- The mapped memory as a byte buffer
-