Skip to content

[MTL] Use scope_exit to auto-close command encoder.#1069

Open
manon-traverse wants to merge 1 commit intollvm:mainfrom
Traverse-Research:auto-close-command-encoder-metal
Open

[MTL] Use scope_exit to auto-close command encoder.#1069
manon-traverse wants to merge 1 commit intollvm:mainfrom
Traverse-Research:auto-close-command-encoder-metal

Conversation

@manon-traverse
Copy link
Copy Markdown
Contributor

When an error occurs during shader reflection parsing in Metal it would not close the command encoder and cause a crash. That crash then prevented printing the actual error that occured. By using a scope_exit we can prevent this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants