File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1775,17 +1775,11 @@ namespace plume {
17751775
17761776 const MetalShader *shader = static_cast <const MetalShader *>(library.shader );
17771777
1778- // Try to find the RaygenIndirection kernel.
1779- // First check if shader has a combined dispatch library (from combined RT metallib).
1778+ // Get the RaygenIndirection kernel from the dispatch library.
17801779 if (raygenIndirectionFunction == nullptr && shader->dispatchLibrary != nullptr ) {
17811780 NS::String *indirectionName = NS::String::string (" RaygenIndirection" , NS::UTF8StringEncoding);
17821781 raygenIndirectionFunction = shader->dispatchLibrary ->newFunction (indirectionName);
17831782 }
1784- // Also check the main library (for backwards compatibility with separate dispatch libraries).
1785- if (raygenIndirectionFunction == nullptr ) {
1786- NS::String *indirectionName = NS::String::string (" RaygenIndirection" , NS::UTF8StringEncoding);
1787- raygenIndirectionFunction = shader->library ->newFunction (indirectionName);
1788- }
17891783
17901784 // Find visible functions from symbols.
17911785 for (uint32_t j = 0 ; j < library.symbolsCount ; j++) {
You can’t perform that action at this time.
0 commit comments