summaryrefslogtreecommitdiff
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorGravatar GPUCode2023-06-06 23:10:06 +0300
committerGravatar bunnei2023-06-27 18:00:09 -0700
commiteac46ad7ceca5e35b396a8b80bfc38dc6ef1a4fe (patch)
tree761e98947d8e26a6409e24befa99cd127f67458d /src/video_core/vulkan_common
parentrenderer_vulkan: Add more feature checking (diff)
downloadyuzu-eac46ad7ceca5e35b396a8b80bfc38dc6ef1a4fe.tar.gz
yuzu-eac46ad7ceca5e35b396a8b80bfc38dc6ef1a4fe.tar.xz
yuzu-eac46ad7ceca5e35b396a8b80bfc38dc6ef1a4fe.zip
video_core: Add BCn decoding support
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index e05d04db3..1f17265d5 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -293,6 +293,11 @@ public:
293 return features.features.textureCompressionASTC_LDR; 293 return features.features.textureCompressionASTC_LDR;
294 } 294 }
295 295
296 /// Returns true if BCn is natively supported.
297 bool IsOptimalBcnSupported() const {
298 return features.features.textureCompressionBC;
299 }
300
296 /// Returns true if descriptor aliasing is natively supported. 301 /// Returns true if descriptor aliasing is natively supported.
297 bool IsDescriptorAliasingSupported() const { 302 bool IsDescriptorAliasingSupported() const {
298 return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY; 303 return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY;
@@ -423,6 +428,11 @@ public:
423 return extensions.sampler_filter_minmax; 428 return extensions.sampler_filter_minmax;
424 } 429 }
425 430
431 /// Returns true if the device supports VK_EXT_shader_stencil_export.
432 bool IsExtShaderStencilExportSupported() const {
433 return extensions.shader_stencil_export;
434 }
435
426 /// Returns true if the device supports VK_EXT_depth_range_unrestricted. 436 /// Returns true if the device supports VK_EXT_depth_range_unrestricted.
427 bool IsExtDepthRangeUnrestrictedSupported() const { 437 bool IsExtDepthRangeUnrestrictedSupported() const {
428 return extensions.depth_range_unrestricted; 438 return extensions.depth_range_unrestricted;
@@ -492,11 +502,6 @@ public:
492 return extensions.vertex_input_dynamic_state; 502 return extensions.vertex_input_dynamic_state;
493 } 503 }
494 504
495 /// Returns true if the device supports VK_EXT_shader_stencil_export.
496 bool IsExtShaderStencilExportSupported() const {
497 return extensions.shader_stencil_export;
498 }
499
500 /// Returns true if the device supports VK_EXT_shader_demote_to_helper_invocation 505 /// Returns true if the device supports VK_EXT_shader_demote_to_helper_invocation
501 bool IsExtShaderDemoteToHelperInvocationSupported() const { 506 bool IsExtShaderDemoteToHelperInvocationSupported() const {
502 return extensions.shader_demote_to_helper_invocation; 507 return extensions.shader_demote_to_helper_invocation;