diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-10-15 12:42:56 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2015-10-19 09:32:27 -0600 |
| commit | 8a9f62a2d83874a66b1b6c7a0b75ad5db459f5af (patch) | |
| tree | 2fde15665902a5d6e94f33188d6306e47547fd3c /layers/screenshot.cpp | |
| parent | 04e23cb13d1e9d51134b77ed8c60441308afe3f3 (diff) | |
| download | usermoji-8a9f62a2d83874a66b1b6c7a0b75ad5db459f5af.tar.xz | |
Clarify parameter usage in memory_type_from_properties
Diffstat (limited to 'layers/screenshot.cpp')
| -rw-r--r-- | layers/screenshot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/screenshot.cpp b/layers/screenshot.cpp index deba9bb6..ac3e20d7 100644 --- a/layers/screenshot.cpp +++ b/layers/screenshot.cpp @@ -99,14 +99,14 @@ static bool screenshotEnvQueried = false; static VkResult memory_type_from_properties( VkPhysicalDeviceMemoryProperties *memory_properties, uint32_t typeBits, - VkFlags properties, + VkFlags requirements_mask, uint32_t *typeIndex) { // Search memtypes to find first index with those properties for (uint32_t i = 0; i < 32; i++) { if ((typeBits & 1) == 1) { // Type is available, does it match user properties? - if ((memory_properties->memoryTypes[i].propertyFlags & properties) == properties) { + if ((memory_properties->memoryTypes[i].propertyFlags & requirements_mask) == requirements_mask) { *typeIndex = i; return VK_SUCCESS; } |
