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 Apr 9, 2024
1 parent 9b39eb6 commit 572d8f0
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 572d8f0

Please sign in to comment.