From 572d8f0ef411dd4eb9583b7cadf30c7e60639627 Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Mon, 8 Apr 2024 18:48:06 -0700 Subject: [PATCH] Handling shader library load errors --- .../FeatureLib/pfMetalPipeline/plMetalDeviceLibraryLoader.mm | 1 + 1 file changed, 1 insertion(+) 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"); }