Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES :: VkStructureType
- pattern VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT :: VkStructureType
- vkGetDescriptorSetLayoutSupport :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkDescriptorSetLayoutCreateInfo) -> ("pSupport" ::: Ptr VkDescriptorSetLayoutSupport) -> IO ()
- data VkPhysicalDeviceMaintenance3Properties = VkPhysicalDeviceMaintenance3Properties {}
- data VkDescriptorSetLayoutSupport = VkDescriptorSetLayoutSupport {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkSupported :: VkBool32
Documentation
vkGetDescriptorSetLayoutSupport :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkDescriptorSetLayoutCreateInfo) -> ("pSupport" ::: Ptr VkDescriptorSetLayoutSupport) -> IO () Source #
vkGetDescriptorSetLayoutSupport - Query whether a descriptor set layout can be created
Parameters
device
is the logical device that would create the descriptor set layout.
pCreateInfo
is a pointer to an instance of theVkDescriptorSetLayoutCreateInfo
structure specifying the state of the descriptor set layout object.pSupport
points to aVkDescriptorSetLayoutSupport
structure in which information about support for the descriptor set layout object is returned.
Description
Some implementations have limitations on what fits in a descriptor set
which are not easily expressible in terms of existing limits like
maxDescriptorSet
*, for example if all descriptor types share a limited
space in memory but each descriptor is a different size or alignment.
This command returns information about whether a descriptor set
satisfies this limit. If the descriptor set layout satisfies the
VkPhysicalDeviceMaintenance3Properties
::maxPerSetDescriptors
limit,
this command is guaranteed to return VK_TRUE
in
VkDescriptorSetLayoutSupport
::supported
. If the descriptor set
layout exceeds the
VkPhysicalDeviceMaintenance3Properties
::maxPerSetDescriptors
limit,
whether the descriptor set layout is supported is
implementation-dependent and may depend on whether the descriptor
sizes and alignments cause the layout to exceed an internal limit.
This command does not consider other limits such as
maxPerStageDescriptor
*, and so a descriptor set layout that is
supported according to this command must still satisfy the pipeline
layout limits such as maxPerStageDescriptor
* in order to be used in a
pipeline layout.
Note
This is a VkDevice
query rather than VkPhysicalDevice
because the
answer may depend on enabled features.
Valid Usage (Implicit)
device
must be a validVkDevice
handle
pCreateInfo
must be a valid pointer to a validVkDescriptorSetLayoutCreateInfo
structurepSupport
must be a valid pointer to aVkDescriptorSetLayoutSupport
structure
See Also
VkDescriptorSetLayoutCreateInfo
,
VkDescriptorSetLayoutSupport
,
VkDevice
data VkPhysicalDeviceMaintenance3Properties Source #
VkPhysicalDeviceMaintenance3Properties - Structure describing descriptor set properties
Members
The members of the VkPhysicalDeviceMaintenance3Properties
structure
describe the following implementation-dependent limits:
Description
maxPerSetDescriptors
is a maximum number of descriptors (summed over all descriptor types) in a single descriptor set that is guaranteed to satisfy any implementation-dependent constraints on the size of a descriptor set itself. Applications can query whether a descriptor set that goes beyond this limit is supported usingvkGetDescriptorSetLayoutSupport
.
maxMemoryAllocationSize
is the maximum size of a memory allocation that can be created, even if there is more space available in the heap.
If the VkPhysicalDeviceMaintenance3Properties
structure is included in
the pNext
chain of
VkPhysicalDeviceProperties2
,
it is filled with the implementation-dependent limits.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES
See Also
VkDeviceSize
, VkStructureType
Instances
data VkDescriptorSetLayoutSupport Source #
VkDescriptorSetLayoutSupport - Structure returning information about whether a descriptor set layout can be supported
Description
supported
is set to VK_TRUE
if the descriptor set can be created,
or else is set to VK_FALSE
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT
pNext
must beNULL
or a pointer to a valid instance ofVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
See Also
VkBool32
, VkStructureType
,
vkGetDescriptorSetLayoutSupport
,
vkGetDescriptorSetLayoutSupportKHR
VkDescriptorSetLayoutSupport | |
|