MCPcopy Create free account
hub / github.com/Autodesk/Aurora / initRayGenShaderTable

Method initRayGenShaderTable

Libraries/Aurora/Source/DirectX/PTRenderer.cpp:636–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636void PTRenderer::initRayGenShaderTable()
637{
638 // Compute the stride of each record in the shader table. The stride includes the shader
639 // identifier and its parameters. Also compute the total size of the table.
640 size_t rayGenShaderRecordStride = SHADER_ID_SIZE;
641 rayGenShaderRecordStride += SHADER_RECORD_DESCRIPTOR_SIZE; // for the descriptor table
642 rayGenShaderRecordStride = ALIGNED_SIZE(rayGenShaderRecordStride, SHADER_RECORD_ALIGNMENT);
643 _rayGenShaderTableSize = rayGenShaderRecordStride; // just one shader record
644
645 // Create a transfer buffer for the shader table.
646 _rayGenShaderTable = createTransferBuffer(_rayGenShaderTableSize, "RayGenShaderTable");
647}
648
649void PTRenderer::updateRayGenShaderTable()
650{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected