summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_device.cpp
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2021-06-25 23:07:24 +0200
committerGitHub <noreply@github.com>2021-06-25 23:07:24 +0200
commitd9fb6dbd37200487424249042224ac4268b8752b (patch)
treea0b7fce9b6389b2a51faae30f059a3241fda68be /src/video_core/vulkan_common/vulkan_device.cpp
parentMerge pull request #6496 from ameerj/astc-fixes (diff)
parentvulkan_device: Make device memory match the rest of the file (diff)
downloadyuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar.gz
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar.bz2
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar.lz
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar.xz
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.tar.zst
yuzu-d9fb6dbd37200487424249042224ac4268b8752b.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 707a8b8fb..23814afd2 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -821,9 +821,9 @@ void Device::CollectTelemetryParameters() {
void Device::CollectPhysicalMemoryInfo() {
const auto mem_properties = physical.GetMemoryProperties();
- const std::size_t num_properties = mem_properties.memoryHeapCount;
+ const size_t num_properties = mem_properties.memoryHeapCount;
device_access_memory = 0;
- for (std::size_t element = 0; element < num_properties; element++) {
+ for (size_t element = 0; element < num_properties; ++element) {
if ((mem_properties.memoryHeaps[element].flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT) != 0) {
device_access_memory += mem_properties.memoryHeaps[element].size;
}