vulkan-3.11.3: Bindings to the Vulkan graphics API.
Safe HaskellNone
LanguageHaskell2010

Vulkan.Extensions.VK_EXT_memory_priority

Description

Name

VK_EXT_memory_priority - device extension

VK_EXT_memory_priority

Name String
VK_EXT_memory_priority
Extension Type
Device extension
Registered Extension Number
239
Revision
1
Extension and Version Dependencies
  • Requires Vulkan 1.0
  • Requires VK_KHR_get_physical_device_properties2
Contact

Other Extension Metadata

Last Modified Date
2018-10-08
Contributors
  • Jeff Bolz, NVIDIA
  • Jeff Juliano, NVIDIA

Description

This extension adds a priority value specified at memory allocation time. On some systems with both device-local and non-device-local memory heaps, the implementation may transparently move memory from one heap to another when a heap becomes full (for example, when the total memory used across all processes exceeds the size of the heap). In such a case, this priority value may be used to determine which allocations are more likely to remain in device-local memory.

New Structures

New Enum Constants

Version History

  • Revision 1, 2018-10-08 (Jeff Bolz)

    • Initial revision

See Also

MemoryPriorityAllocateInfoEXT, PhysicalDeviceMemoryPriorityFeaturesEXT

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

Documentation

data PhysicalDeviceMemoryPriorityFeaturesEXT Source #

VkPhysicalDeviceMemoryPriorityFeaturesEXT - Structure describing memory priority features that can be supported by an implementation

Members

This structure describes the following feature:

Description

If the PhysicalDeviceMemoryPriorityFeaturesEXT structure is included in the pNext chain of the PhysicalDeviceFeatures2 structure passed to getPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported. PhysicalDeviceMemoryPriorityFeaturesEXT can also be used in the pNext chain of DeviceCreateInfo to selectively enable these features.

Valid Usage (Implicit)

See Also

Bool32, StructureType

Constructors

PhysicalDeviceMemoryPriorityFeaturesEXT 

Fields

Instances

Instances details
Eq PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Show PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Storable PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

FromCStruct PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

ToCStruct PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Zero PhysicalDeviceMemoryPriorityFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

data MemoryPriorityAllocateInfoEXT Source #

VkMemoryPriorityAllocateInfoEXT - Specify a memory allocation priority

Description

Memory allocations with higher priority may be more likely to stay in device-local memory when the system is under memory pressure.

If this structure is not included, it is as if the priority value were 0.5.

Valid Usage (Implicit)

See Also

StructureType

Constructors

MemoryPriorityAllocateInfoEXT 

Fields

  • priority :: Float

    priority is a floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations. Larger values are higher priority. The granularity of the priorities is implementation-dependent.

    priority must be between 0 and 1, inclusive

Instances

Instances details
Eq MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Show MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Storable MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

FromCStruct MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

ToCStruct MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

Zero MemoryPriorityAllocateInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_memory_priority

type EXT_MEMORY_PRIORITY_EXTENSION_NAME = "VK_EXT_memory_priority" Source #

pattern EXT_MEMORY_PRIORITY_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #