-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inconsistency in reporting shared memory between type and heap on…
… macOS. Remove VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT and VK_MEMORY_PROPERTY_HOST_CACHED_BIT from MVK_VK_MEMORY_TYPE_METAL_SHARED. Refactor MVKPhysicalDevice::initMemoryProperties() to configure memory types and heaps in a more organized, procedural, and traceable manner. Enhance MVKPhysicalDevice::getHasUnifiedMemory() detection of unified memory. Simplify MVKPhysicalDevice::getVRAMSize(). On macOS MVKImage::validateUseTexelBuffer() tests the underlying device memory directly to determine if it has coherent memory and cannot support texel buffer. Add MVKInstance::getPhysicalDeviceCount(). Add mvkClear() template function for clearing structs and replace use of memset(*, 0, sz) with mvkClear(). Refactor mvkCopyStruct() and rename to mvkCopy().
- Loading branch information
1 parent
98e0b79
commit 574e92a
Showing
14 changed files
with
177 additions
and
160 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
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.