Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correcting MTLDevice.mm macro definition issue #17920

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading