Skip to content

Commit

Permalink
Handling shader library load errors
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed May 1, 2024
1 parent 1312205 commit 120ad59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@
NSURL* shaderURL = [NSBundle.mainBundle URLForResource:@"pfMetalPipelineShadersMSL21" withExtension:@"metallib"];
fShaderLibrary = fMetalDevice->newLibrary(static_cast<NS::URL*>(shaderURL), &error);
}
hsAssert(error == nil, "Unexpected error loading Metal shader library");
}

0 comments on commit 120ad59

Please sign in to comment.