| 59 | } |
| 60 | |
| 61 | RtProgramVars::RtProgramVars(ref<Device> pDevice, const ref<Program>& pProgram, const ref<RtBindingTable>& pBindingTable) |
| 62 | : ProgramVars(pDevice, pProgram->getReflector()), mpShaderTable(pDevice) |
| 63 | { |
| 64 | FALCOR_CHECK(pProgram, "RtProgramVars must have a raytracing program attached to it"); |
| 65 | FALCOR_CHECK(pBindingTable && pBindingTable->getRayGen().isValid(), "RtProgramVars must have a raygen program attached to it"); |
| 66 | |
| 67 | init(pBindingTable); |
| 68 | } |
| 69 | |
| 70 | ref<RtProgramVars> RtProgramVars::create(ref<Device> pDevice, const ref<Program>& pProgram, const ref<RtBindingTable>& pBindingTable) |
| 71 | { |