| 134 | return offset; |
| 135 | } |
| 136 | uint32_t getHitGroupOffset(uint32_t rayType, uint32_t geometryID) const |
| 137 | { |
| 138 | FALCOR_ASSERT(rayType < mRayTypeCount && geometryID < mGeometryCount); |
| 139 | uint32_t offset = 1 + mMissCount + geometryID * mRayTypeCount + rayType; |
| 140 | FALCOR_ASSERT(offset < mShaderTable.size()); |
| 141 | return offset; |
| 142 | } |
| 143 | |
| 144 | // Internal state |
| 145 | uint32_t mMissCount = 0; ///< Number of miss shaders. |
no test coverage detected