MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / RtBindingTable

Method RtBindingTable

Source/Falcor/Core/Program/RtBindingTable.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46RtBindingTable::RtBindingTable(uint32_t missCount, uint32_t rayTypeCount, uint32_t geometryCount)
47 : mMissCount(missCount), mRayTypeCount(rayTypeCount), mGeometryCount(geometryCount)
48{
49 FALCOR_CHECK(missCount <= kMaxMissCount, "'missCount' exceeds the maximum supported ({})", kMaxMissCount);
50 FALCOR_CHECK(rayTypeCount <= kMaxRayTypeCount, "'rayTypeCount' exceeds the maximum supported ({})", kMaxRayTypeCount);
51 size_t recordCount = 1ull + missCount + rayTypeCount * geometryCount;
52 FALCOR_CHECK(recordCount <= std::numeric_limits<uint32_t>::max(), "Raytracing binding table is too large");
53
54 // Create the binding table. All entries will be assigned a null shader initially.
55 mShaderTable.resize(recordCount);
56}
57
58void RtBindingTable::setRayGen(ShaderID shaderID)
59{

Callers

nothing calls this directly

Calls 2

maxFunction · 0.50
resizeMethod · 0.45

Tested by

no test coverage detected