diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-08 21:16:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 21:16:53 +0200 |
commit | 50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d (patch) | |
tree | 594f42eb18464e5370917bfad61694ecce7a050b /src/video_core/renderer_vulkan/vk_device.cpp | |
parent | Merge pull request #3879 from lioncash/global2 (diff) | |
parent | vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzle (diff) | |
download | yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.gz yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.bz2 yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.lz yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.xz yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.zst yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.zip |
Diffstat (limited to '')
-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 09ddfa59c..170cdaed0 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 = @@ -533,6 +537,7 @@ std::vector<const char*> VKDevice::LoadExtensions() { bool has_ext_transform_feedback{}; bool has_ext_custom_border_color{}; 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, |