| 634 | } |
| 635 | |
| 636 | void 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 | |
| 649 | void PTRenderer::updateRayGenShaderTable() |
| 650 | { |
nothing calls this directly
no outgoing calls
no test coverage detected