File tree 1 file changed +8
-2
lines changed
impeller/renderer/backend/metal
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 55
55
56
56
// TODO(dnfield): remove this declaration when we no longer need to build on
57
57
// machines with lower SDK versions than 11.0.s
58
- #if !defined(MAC_OS_X_VERSION_11_0 ) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_11_0
59
- typedef enum MTLCommandEncoderErrorState : NSInteger {
58
+ #if !defined(MAC_OS_VERSION_11_0 ) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_VERSION_11_0
59
+ typedef NS_ENUM ( NSInteger , MTLCommandEncoderErrorState) {
60
60
MTLCommandEncoderErrorStateUnknown = 0 ,
61
61
MTLCommandEncoderErrorStateCompleted = 1 ,
62
62
MTLCommandEncoderErrorStateAffected = 2 ,
65
65
} API_AVAILABLE(macos(11.0 ), ios(14.0 ));
66
66
#endif
67
67
68
+
69
+ #if !defined(MAC_OS_VERSION_12_0) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_VERSION_12_0
70
+ constexpr int MTLCommandBufferErrorAccessRevoked = 4 ;
71
+ constexpr int MTLCommandBufferErrorStackOverflow = 12 ;
72
+ #endif
73
+
68
74
API_AVAILABLE (ios(14.0 ), macos(11.0 ))
69
75
NSString * MTLCommandEncoderErrorStateToString (
70
76
MTLCommandEncoderErrorState state) {
You can’t perform that action at this time.
0 commit comments