33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
// This section is included inside the Resource Descriptors chapter (descriptorsets.txt)
|
|
|
|
[[descriptorsets-accelerationstructure]]
|
|
=== Acceleration Structure
|
|
|
|
An _acceleration structure_
|
|
(ename:VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NVX) is a descriptor type
|
|
that is used to retrieve scene geometry from within shaders bound to
|
|
raytracing pipelines.
|
|
Shaders have read-only access to the memory.
|
|
|
|
[open,refpage='VkDescriptorAccelerationStructureInfoNVX',desc='Structure specifying acceleration to query for memory requirements',type='structs']
|
|
--
|
|
The sname:VkDescriptorAccelerationStructureInfoNVX structure is defined as:
|
|
|
|
include::../../api/structs/VkDescriptorAccelerationStructureInfoNVX.txt[]
|
|
|
|
* pname:sType is the type of this structure.
|
|
* pname:pNext is `NULL` or a pointer to an extension-specific structure.
|
|
* pname:accelerationStructureCount is the number of elements in
|
|
pAccelerationStructures
|
|
* pname:pAccelerationStructures are the acceleration structures to update
|
|
|
|
.Valid Usage
|
|
****
|
|
* [[VUID-VkDescriptorAccelerationStructureInfoNVX-accelerationStructureCount-02236]]
|
|
pname:accelerationStructureCount must: be equal to descriptorCount in
|
|
the extended structure.
|
|
****
|
|
|
|
include::../../validity/structs/VkDescriptorAccelerationStructureInfoNVX.txt[]
|
|
--
|