15 #include <vsg/raytracing/AccelerationStructure.h>
16 #include <vsg/state/Descriptor.h>
27 explicit DescriptorAccelerationStructure(
const AccelerationStructures& accelerationStructures, uint32_t dstBinding = 0, uint32_t dstArrayElement = 0, VkDescriptorType descriptorType = VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR);
29 AccelerationStructures& getAccelerationStructures() {
return _accelerationStructures; }
30 const AccelerationStructures& getAccelerationStructures()
const {
return _accelerationStructures; }
32 void read(
Input& input)
override;
33 void write(
Output& output)
const override;
35 void compile(
Context& context)
override;
37 void assignTo(
Context& context, VkWriteDescriptorSet& wds)
const override;
39 uint32_t getNumDescriptors()
const override;
42 AccelerationStructures _accelerationStructures;
45 std::vector<VkAccelerationStructureKHR> _vkAccelerationStructures;
DescriptorAccelerationStructure encapsulates descriptors of type VkAccelerationStructure.
Definition: DescriptorAccelerationStructure.h:23