File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
impeller/renderer/backend/metal Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5555
5656// TODO(dnfield): remove this declaration when we no longer need to build on
5757// 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) {
6060 MTLCommandEncoderErrorStateUnknown = 0 ,
6161 MTLCommandEncoderErrorStateCompleted = 1 ,
6262 MTLCommandEncoderErrorStateAffected = 2 ,
6565} API_AVAILABLE(macos(11.0 ), ios(14.0 ));
6666#endif
6767
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+
6874API_AVAILABLE (ios(14.0 ), macos(11.0 ))
6975NSString * MTLCommandEncoderErrorStateToString (
7076 MTLCommandEncoderErrorState state) {
You can’t perform that action at this time.
0 commit comments