42 class VSG_DECLSPEC BuildAccelerationStructureCommand :
public Inherit<Command, BuildAccelerationStructureCommand>
54 std::vector<VkAccelerationStructureGeometryKHR> _accelerationStructureGeometries;
55 std::vector<VkAccelerationStructureBuildRangeInfoKHR> _accelerationStructureBuildRangeInfos;
56 VkAccelerationStructureKHR _accelerationStructure;
66 class VSG_DECLSPEC Context :
public Inherit<Object, Context>
71 Context(
const Context& context);
75 const uint32_t deviceID = 0;
99 GraphicsPipelineStates defaultPipelineStates;
107 GraphicsPipelineStates overridePipelineStates;
125 bool requiresWaitForCompletion =
false;
127 std::vector<ref_ptr<Command>> commands;
139 void waitForCompletion();
145 VkDeviceSize scratchBufferSize;
146 std::vector<ref_ptr<BuildAccelerationStructureCommand>> buildAccelerationStructureCommands;
void reserve(const ResourceRequirements &requirements)
reserve resources that may be needed during compile traversal.
ShaderCompiler * getOrCreateShaderCompiler()
get existing ShaderCompiler or create a new one when GLSLang is supported
ref_ptr< Instrumentation > instrumentation
Hook for assigning Instrumentation to enable profiling.
Definition Context.h:116
bool record()
return true if there are commands that have been submitted