summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorViktor Szépe <viktor@szepe.net>2024-01-07 23:44:55 +0100
committerViktor Szépe <viktor@szepe.net>2024-01-07 23:44:55 +0100
commit53085a45e0b2cc995f4056de40116a66f7ae7c08 (patch)
tree532a7e9b391510ea4e9fb254d669b405de7b289d /src/video_core/vulkan_common
parentMerge pull request #12560 from GayPotatoEmma/master (diff)
downloadyuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.gz
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.bz2
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.lz
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.xz
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.zst
yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.zip
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h2
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 701817086..a2ec26697 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -596,7 +596,7 @@ public:
}
/// Returns true when the device does not properly support cube compatibility.
- bool HasBrokenCubeImageCompability() const {
+ bool HasBrokenCubeImageCompatibility() const {
return has_broken_cube_compatibility;
}
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
index 8dd1667f3..8f4a57e3c 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
@@ -57,7 +57,7 @@ struct Range {
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
}
-[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferedVmaFlags(MemoryUsage usage) {
+[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferredVmaFlags(MemoryUsage usage) {
return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
: VkMemoryPropertyFlagBits{};
}
@@ -256,7 +256,7 @@ vk::Buffer MemoryAllocator::CreateBuffer(const VkBufferCreateInfo& ci, MemoryUsa
.flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT | MemoryUsageVmaFlags(usage),
.usage = MemoryUsageVma(usage),
.requiredFlags = 0,
- .preferredFlags = MemoryUsagePreferedVmaFlags(usage),
+ .preferredFlags = MemoryUsagePreferredVmaFlags(usage),
.memoryTypeBits = usage == MemoryUsage::Stream ? 0u : valid_memory_types,
.pool = VK_NULL_HANDLE,
.pUserData = nullptr,