renderer/metal: detect frame commit failures and notify surface

This commit is contained in:
Mitchell Hashimoto
2024-01-16 10:50:42 -08:00
parent d07506d285
commit 0277a0fb4c
5 changed files with 83 additions and 0 deletions

View File

@@ -1,5 +1,16 @@
//! This file contains the definitions of the Metal API that we use.
/// https://developer.apple.com/documentation/metal/mtlcommandbufferstatus?language=objc
pub const MTLCommandBufferStatus = enum(c_ulong) {
not_enqueued = 0,
enqueued = 1,
committed = 2,
scheduled = 3,
completed = 4,
@"error" = 5,
_,
};
/// https://developer.apple.com/documentation/metal/mtlloadaction?language=objc
pub const MTLLoadAction = enum(c_ulong) {
dont_care = 0,