-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor defining MTLPixelFormat and GPU capabilities.
- Add MVKMTLDeviceCapabilities to encapsulate Metal GPU family capabilities, and use it in MVKPhysicalDevice and MVKPixelFormats to identify GPU capabilities. - Remove all references to MTLGPUFamily and MTLFeatureSet outside MVKMTLDeviceCapabilities. - Blend or select AppleGPU and MacGPU format capabilities. - Simplify MVKPixelFormats::modifyMTLFormatCapabilities() based on MVKMTLDeviceCapabilities. - Add guard code to ensure MTLPixelFormatInvalid & MTLVertexFormatInvalid capabilities are not overwritten by other formats that don't exist on some platforms. - Update MTLPixelFormat capabilities based on latest Metal docs. - Remove some variations tied to very older OS versions, or MTLFeatureSets that have the same GPU family, including setting MSL 2.0 as the earliest supported version. - Enable VkPhysicalDeviceFeatures::vertexPipelineStoresAndAtomics & fragmentStoresAndAtomics on all platforms. - During startup, only log the highest GPU family.
- Loading branch information
1 parent
3b9e335
commit 5afeaa4
Showing
6 changed files
with
610 additions
and
1,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.