diff --git a/Sources/Plasma/FeatureLib/pfMetalPipeline/plMetalDeviceLibraryLoader.mm b/Sources/Plasma/FeatureLib/pfMetalPipeline/plMetalDeviceLibraryLoader.mm index 2c57847119..3237859929 100644 --- a/Sources/Plasma/FeatureLib/pfMetalPipeline/plMetalDeviceLibraryLoader.mm +++ b/Sources/Plasma/FeatureLib/pfMetalPipeline/plMetalDeviceLibraryLoader.mm @@ -57,4 +57,5 @@ NSURL* shaderURL = [NSBundle.mainBundle URLForResource:@"pfMetalPipelineShadersMSL21" withExtension:@"metallib"]; fShaderLibrary = fMetalDevice->newLibrary(static_cast(shaderURL), &error); } + hsAssert(error == nil, "Unexpected error loading Metal shader library"); }