Skip to content

Commit

Permalink
fix: correcting MTLDevice.mm macro definition issue (#17920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhengbledor authored Nov 29, 2024
1 parent aa3b926 commit b645c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/cocos/renderer/gfx-metal/MTLDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ of this software and associated engine source code (the "Software"), a limited,
_features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = [mtlDevice supportsFamily:MTLGPUFamilyApple5];
_features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] |= [mtlDevice supportsFamily:MTLGPUFamilyMac2];
} else {
#if CC_PLATFOTM == CC_PLATFORM_IOS
#if CC_PLATFORM == CC_PLATFORM_IOS
id<MTLDevice> device = static_cast<id<MTLDevice>>(_mtlDevice);
_features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = [device supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily2_v4];
#elif CC_PLATFOTM == CC_PLATFORM_MACOS
#elif CC_PLATFORM == CC_PLATFORM_MACOS
_features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = false;
#endif
}
Expand Down

0 comments on commit b645c4d

Please sign in to comment.