diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-04 23:31:17 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-04 23:31:17 +0200 |
commit | 2dbf5290f28efa47b2484537e9316909831fee05 (patch) | |
tree | 8532b1b39dc83cb9d6e6460a21b6fbebd3084b65 /src/video_core/renderer_vulkan/vk_device.cpp | |
parent | gl_rasterizer: Implement viewport swizzles with NV_viewport_swizzle (diff) | |
download | yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar.gz yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar.bz2 yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar.lz yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar.xz yuzu-2dbf5290f28efa47b2484537e9316909831fee05.tar.zst yuzu-2dbf5290f28efa47b2484537e9316909831fee05.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_device.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index 0e4bbca97..e1f65e3a7 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp @@ -260,6 +260,10 @@ bool VKDevice::Create() { LOG_INFO(Render_Vulkan, "Device doesn't support float16 natively"); } + if (!nv_viewport_swizzle) { + LOG_INFO(Render_Vulkan, "Device doesn't support viewport swizzles"); + } + VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR std430_layout; if (khr_uniform_buffer_standard_layout) { std430_layout.sType = @@ -521,6 +525,7 @@ std::vector<const char*> VKDevice::LoadExtensions() { bool has_ext_subgroup_size_control{}; bool has_ext_transform_feedback{}; for (const auto& extension : physical.EnumerateDeviceExtensionProperties()) { + Test(extension, nv_viewport_swizzle, VK_NV_VIEWPORT_SWIZZLE_EXTENSION_NAME, true); Test(extension, khr_uniform_buffer_standard_layout, VK_KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_EXTENSION_NAME, true); Test(extension, has_khr_shader_float16_int8, VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME, |