Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw an exception when failing to build a Metal render pipeline stat…
…e. (#7878) Currently, if this fails we log the error message to stderr (which doesn't get captured by most crash reporting systems) and then crash in a postcondition assert. By including the error message in an exception reason and throwing an ObjC exception, we get better discoverability of error causes. (Building a render pipeline state from shaders is usually when a shader actually gets JITted from LLVM IR to GPU-specific code, so if we accidentally used a feature that's not available on the local GPU, we'll find out about it here.)
- Loading branch information