diff options
| author | 2024-01-07 20:42:54 -0500 | |
|---|---|---|
| committer | 2024-01-07 20:42:54 -0500 | |
| commit | 82b58668edcb078896a1184d158a08c58f841dd5 (patch) | |
| tree | 5c64e962b792e29fa153843de15265c998d24b89 /src/video_core/vulkan_common | |
| parent | Merge pull request #12606 from german77/npad_close (diff) | |
| parent | Fix "Propietary" typo elsewhere (diff) | |
| download | yuzu-82b58668edcb078896a1184d158a08c58f841dd5.tar.gz yuzu-82b58668edcb078896a1184d158a08c58f841dd5.tar.xz yuzu-82b58668edcb078896a1184d158a08c58f841dd5.zip | |
Merge pull request #12608 from szepeviktor/typos
Fix typos in video_core
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 2 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_memory_allocator.cpp | 4 |
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: | |||
| 596 | } | 596 | } |
| 597 | 597 | ||
| 598 | /// Returns true when the device does not properly support cube compatibility. | 598 | /// Returns true when the device does not properly support cube compatibility. |
| 599 | bool HasBrokenCubeImageCompability() const { | 599 | bool HasBrokenCubeImageCompatibility() const { |
| 600 | return has_broken_cube_compatibility; | 600 | return has_broken_cube_compatibility; |
| 601 | } | 601 | } |
| 602 | 602 | ||
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 { | |||
| 57 | return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; | 57 | return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | [[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferedVmaFlags(MemoryUsage usage) { | 60 | [[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferredVmaFlags(MemoryUsage usage) { |
| 61 | return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | 61 | return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
| 62 | : VkMemoryPropertyFlagBits{}; | 62 | : VkMemoryPropertyFlagBits{}; |
| 63 | } | 63 | } |
| @@ -256,7 +256,7 @@ vk::Buffer MemoryAllocator::CreateBuffer(const VkBufferCreateInfo& ci, MemoryUsa | |||
| 256 | .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT | MemoryUsageVmaFlags(usage), | 256 | .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT | MemoryUsageVmaFlags(usage), |
| 257 | .usage = MemoryUsageVma(usage), | 257 | .usage = MemoryUsageVma(usage), |
| 258 | .requiredFlags = 0, | 258 | .requiredFlags = 0, |
| 259 | .preferredFlags = MemoryUsagePreferedVmaFlags(usage), | 259 | .preferredFlags = MemoryUsagePreferredVmaFlags(usage), |
| 260 | .memoryTypeBits = usage == MemoryUsage::Stream ? 0u : valid_memory_types, | 260 | .memoryTypeBits = usage == MemoryUsage::Stream ? 0u : valid_memory_types, |
| 261 | .pool = VK_NULL_HANDLE, | 261 | .pool = VK_NULL_HANDLE, |
| 262 | .pUserData = nullptr, | 262 | .pUserData = nullptr, |