-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
VMAMappedMemoryType
- All Known Implementing Classes:
VulkanLWJGLMappedMemory
public interface VulkanMappedMemoryType extends java.lang.AutoCloseable
A pointer to an area of mapped memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.ByteBuffer
asByteBuffer()
void
close()
Unmap the memory.void
flush()
Flush this mapped memory.void
flushRange(long offset, long size)
Flush the given memory range.boolean
isMapped()
-
-
-
Method Detail
-
isMapped
boolean isMapped()
- Returns:
true
iffclose()
has not been called
-
flushRange
void flushRange(long offset, long size) throws VulkanException
Flush the given memory range.- Parameters:
offset
- The offsetsize
- The size- Throws:
VulkanException
- On errors- See Also:
VulkanLogicalDeviceType.flushMappedMemoryRange(VulkanMappedMemoryRange)
-
flush
void flush() throws VulkanException
Flush this mapped memory.- Throws:
VulkanException
- On errors- See Also:
VulkanLogicalDeviceType.flushMappedMemoryRange(VulkanMappedMemoryRange)
-
close
void close() throws VulkanException
Unmap the memory.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
VulkanException
- On errors
-
asByteBuffer
java.nio.ByteBuffer asByteBuffer()
- Returns:
- The mapped memory as a byte buffer
-
-