| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_NV_dedicated_allocation
Synopsis
- pattern VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV :: VkStructureType
- pattern VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV :: VkStructureType
- pattern VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV :: VkStructureType
- pattern VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION :: Integral a => a
- pattern VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME :: (Eq a, IsString a) => a
- data VkDedicatedAllocationImageCreateInfoNV = VkDedicatedAllocationImageCreateInfoNV {}
- data VkDedicatedAllocationBufferCreateInfoNV = VkDedicatedAllocationBufferCreateInfoNV {}
- data VkDedicatedAllocationMemoryAllocateInfoNV = VkDedicatedAllocationMemoryAllocateInfoNV {}
Documentation
pattern VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION :: Integral a => a Source #
pattern VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
data VkDedicatedAllocationImageCreateInfoNV Source #
VkDedicatedAllocationImageCreateInfoNV - Specify that an image is bound to a dedicated memory resource
Description
Note
Using a dedicated allocation for color and depth/stencil attachments or other large images may improve performance on some devices.
Valid Usage
- If
dedicatedAllocationisVK_TRUE,VkImageCreateInfo::flagsmust not includeVK_IMAGE_CREATE_SPARSE_BINDING_BIT,VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT, orVK_IMAGE_CREATE_SPARSE_ALIASED_BIT
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV
See Also
VkBool32, VkStructureType
Constructors
| VkDedicatedAllocationImageCreateInfoNV | |
Fields
| |
Instances
data VkDedicatedAllocationBufferCreateInfoNV Source #
VkDedicatedAllocationBufferCreateInfoNV - Specify that a buffer is bound to a dedicated memory resource
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV
See Also
VkBool32, VkStructureType
Constructors
| VkDedicatedAllocationBufferCreateInfoNV | |
Fields
| |
Instances
data VkDedicatedAllocationMemoryAllocateInfoNV Source #
VkDedicatedAllocationMemoryAllocateInfoNV - Specify a dedicated memory allocation resource
Valid Usage
- At least one of
imageandbuffermust beVK_NULL_HANDLE
- If
imageis notVK_NULL_HANDLE, the image must have been created withVkDedicatedAllocationImageCreateInfoNV::dedicatedAllocationequal toVK_TRUE - If
bufferis notVK_NULL_HANDLE, the buffer must have been created withVkDedicatedAllocationBufferCreateInfoNV::dedicatedAllocationequal toVK_TRUE - If
imageis notVK_NULL_HANDLE,VkMemoryAllocateInfo::allocationSizemust equal theVkMemoryRequirements::sizeof the image - If
bufferis notVK_NULL_HANDLE,VkMemoryAllocateInfo::allocationSizemust equal theVkMemoryRequirements::sizeof the buffer - If
imageis notVK_NULL_HANDLEandVkMemoryAllocateInfodefines a memory import operation, the memory being imported must also be a dedicated image allocation andimagemust be identical to the image associated with the imported memory. - If
bufferis notVK_NULL_HANDLEandVkMemoryAllocateInfodefines a memory import operation, the memory being imported must also be a dedicated buffer allocation andbuffermust be identical to the buffer associated with the imported memory.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV
- If
imageis notVK_NULL_HANDLE,imagemust be a validVkImagehandle - If
bufferis notVK_NULL_HANDLE,buffermust be a validVkBufferhandle - Both of
buffer, andimagethat are valid handles must have been created, allocated, or retrieved from the sameVkDevice
See Also
Constructors
| VkDedicatedAllocationMemoryAllocateInfoNV | |
Fields
| |