Skip to content

Commit e3bd492

Browse files
committed
Remove old fallback
1 parent 64f1f47 commit e3bd492

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

plume_metal.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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++) {

0 commit comments

Comments
 (0)