Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Name
VK_KHR_map_memory2 - device extension
VK_KHR_map_memory2
- Name String
VK_KHR_map_memory2
- Extension Type
- Device extension
- Registered Extension Number
- 272
- Revision
- 1
- Ratification Status
- Ratified
- Extension and Version Dependencies; Contact
- Extension Proposal
- VK_KHR_map_memory2
Other Extension Metadata
- Last Modified Date
- 2023-03-14
- Interactions and External Dependencies
- None
- Contributors
- Faith Ekstrand, Collabora
- Tobias Hector, AMD
Description
This extension provides extensible versions of the Vulkan memory map and unmap entry points. The new entry points are functionally identical to the core entry points, except that their parameters are specified using extensible structures that can be used to pass extension-specific information.
New Commands
New Structures
New Bitmasks
New Enum Constants
KHR_MAP_MEMORY_2_SPEC_VERSION
Extending
StructureType
:
Version History
Revision 0, 2022-08-03 (Faith Ekstrand)
- Internal revisions
Revision 1, 2023-03-14
- Public release
See Also
MemoryMapInfoKHR
, MemoryUnmapFlagsKHR
, MemoryUnmapInfoKHR
,
mapMemory2KHR
, unmapMemory2KHR
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- mapMemory2KHR :: forall io. MonadIO io => Device -> MemoryMapInfoKHR -> io ("data" ::: Ptr ())
- unmapMemory2KHR :: forall io. MonadIO io => Device -> MemoryUnmapInfoKHR -> io ()
- data MemoryMapInfoKHR = MemoryMapInfoKHR {}
- data MemoryUnmapInfoKHR = MemoryUnmapInfoKHR {}
- newtype MemoryUnmapFlagsKHR = MemoryUnmapFlagsKHR Flags
- type KHR_MAP_MEMORY_2_SPEC_VERSION = 1
- pattern KHR_MAP_MEMORY_2_SPEC_VERSION :: forall a. Integral a => a
- type KHR_MAP_MEMORY_2_EXTENSION_NAME = "VK_KHR_map_memory2"
- pattern KHR_MAP_MEMORY_2_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
:: forall io. MonadIO io | |
=> Device |
|
-> MemoryMapInfoKHR |
|
-> io ("data" ::: Ptr ()) |
vkMapMemory2KHR - Map a memory object into application address space
Description
This function behaves identically to mapMemory
except that it gets its parameters via an extensible structure pointer
rather than directly as function arguments.
Return Codes
See Also
:: forall io. MonadIO io | |
=> Device |
|
-> MemoryUnmapInfoKHR |
|
-> io () |
vkUnmapMemory2KHR - Unmap a previously mapped memory object
Description
This function behaves identically to unmapMemory
except that it gets its parameters via an extensible structure pointer
rather than directly as function arguments.
Return Codes
See Also
data MemoryMapInfoKHR Source #
VkMemoryMapInfoKHR - Structure containing parameters of a memory map operation
Valid Usage
-
offset
must be less than the size ofmemory
- If
size
is not equal toWHOLE_SIZE
,size
must be greater than0
- If
size
is not equal toWHOLE_SIZE
,size
must be less than or equal to the size of thememory
minusoffset
-
memory
must have been created with a memory type that reportsMEMORY_PROPERTY_HOST_VISIBLE_BIT
-
memory
must not have been allocated with multiple instances
Valid Usage (Implicit)
-
sType
must beSTRUCTURE_TYPE_MEMORY_MAP_INFO_KHR
-
pNext
must beNULL
-
flags
must be0
-
memory
must be a validDeviceMemory
handle
Host Synchronization
- Host access to
memory
must be externally synchronized
See Also
VK_KHR_map_memory2,
DeviceMemory
,
DeviceSize
,
MemoryMapFlags
,
StructureType
, mapMemory2KHR
MemoryMapInfoKHR | |
|
Instances
data MemoryUnmapInfoKHR Source #
VkMemoryUnmapInfoKHR - Structure containing parameters of a memory unmap operation
Valid Usage
Valid Usage (Implicit)
-
sType
must beSTRUCTURE_TYPE_MEMORY_UNMAP_INFO_KHR
-
pNext
must beNULL
-
flags
must be0
-
memory
must be a validDeviceMemory
handle
Host Synchronization
- Host access to
memory
must be externally synchronized
See Also
VK_KHR_map_memory2,
DeviceMemory
, MemoryUnmapFlagsKHR
,
StructureType
, unmapMemory2KHR
MemoryUnmapInfoKHR | |
|
Instances
newtype MemoryUnmapFlagsKHR Source #
VkMemoryUnmapFlagsKHR - Reserved for future use
Description
VkMemoryMapFlagsKHR
is a bitmask type for setting a mask, but is
currently reserved for future use.
See Also
Instances
type KHR_MAP_MEMORY_2_SPEC_VERSION = 1 Source #
pattern KHR_MAP_MEMORY_2_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_MAP_MEMORY_2_EXTENSION_NAME = "VK_KHR_map_memory2" Source #
pattern KHR_MAP_MEMORY_2_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #