mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-09 22:58:54 +02:00
[vulkan] Adjusted RobustImageAccess
This commit is contained in:
parent
636f4e4e4b
commit
415a62c37b
2 changed files with 6 additions and 36 deletions
|
|
@ -1261,9 +1261,10 @@ void Device::RemoveUnsuitableExtensions() {
|
||||||
RemoveExtensionFeatureIfUnsuitable(extensions.robustness_2, features.robustness2,
|
RemoveExtensionFeatureIfUnsuitable(extensions.robustness_2, features.robustness2,
|
||||||
robustness2_extension_name);
|
robustness2_extension_name);
|
||||||
|
|
||||||
// VK_EXT_image_robustness
|
// Image robustness
|
||||||
extensions.image_robustness = features.image_robustness.robustImageAccess;
|
extensions.robust_image_access = features.robust_image_access.robustImageAccess;
|
||||||
RemoveExtensionFeatureIfUnsuitable(extensions.image_robustness, features.image_robustness,
|
RemoveExtensionFeatureIfUnsuitable(extensions.robust_image_access,
|
||||||
|
features.robust_image_access,
|
||||||
VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME);
|
VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME);
|
||||||
|
|
||||||
// VK_KHR_shader_atomic_int64
|
// VK_KHR_shader_atomic_int64
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
||||||
FEATURE(KHR, TimelineSemaphore, TIMELINE_SEMAPHORE, timeline_semaphore)
|
FEATURE(KHR, TimelineSemaphore, TIMELINE_SEMAPHORE, timeline_semaphore)
|
||||||
|
|
||||||
#define FOR_EACH_VK_FEATURE_1_3(FEATURE) \
|
#define FOR_EACH_VK_FEATURE_1_3(FEATURE) \
|
||||||
FEATURE(EXT, ImageRobustness, IMAGE_ROBUSTNESS, image_robustness) \
|
FEATURE(EXT, ImageRobustness, IMAGE_ROBUSTNESS, robust_image_access) \
|
||||||
FEATURE(EXT, ShaderDemoteToHelperInvocation, SHADER_DEMOTE_TO_HELPER_INVOCATION, \
|
FEATURE(EXT, ShaderDemoteToHelperInvocation, SHADER_DEMOTE_TO_HELPER_INVOCATION, \
|
||||||
shader_demote_to_helper_invocation) \
|
shader_demote_to_helper_invocation) \
|
||||||
FEATURE(EXT, SubgroupSizeControl, SUBGROUP_SIZE_CONTROL, subgroup_size_control) \
|
FEATURE(EXT, SubgroupSizeControl, SUBGROUP_SIZE_CONTROL, subgroup_size_control) \
|
||||||
|
|
@ -123,7 +123,6 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
||||||
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_3_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_3_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_4444_FORMATS_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_4444_FORMATS_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_IMAGE_ROBUSTNESS_EXTENSION_NAME) \
|
|
||||||
EXTENSION_NAME(VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME) \
|
||||||
|
|
@ -173,7 +172,7 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
||||||
FEATURE_NAME(depth_bias_control, depthBiasExact) \
|
FEATURE_NAME(depth_bias_control, depthBiasExact) \
|
||||||
FEATURE_NAME(extended_dynamic_state, extendedDynamicState) \
|
FEATURE_NAME(extended_dynamic_state, extendedDynamicState) \
|
||||||
FEATURE_NAME(format_a4b4g4r4, formatA4B4G4R4) \
|
FEATURE_NAME(format_a4b4g4r4, formatA4B4G4R4) \
|
||||||
FEATURE_NAME(image_robustness, robustImageAccess) \
|
FEATURE_NAME(robust_image_access, robustImageAccess) \
|
||||||
FEATURE_NAME(index_type_uint8, indexTypeUint8) \
|
FEATURE_NAME(index_type_uint8, indexTypeUint8) \
|
||||||
FEATURE_NAME(primitive_topology_list_restart, primitiveTopologyListRestart) \
|
FEATURE_NAME(primitive_topology_list_restart, primitiveTopologyListRestart) \
|
||||||
FEATURE_NAME(provoking_vertex, provokingVertexLast) \
|
FEATURE_NAME(provoking_vertex, provokingVertexLast) \
|
||||||
|
|
@ -549,36 +548,6 @@ public:
|
||||||
return extensions.custom_border_color;
|
return extensions.custom_border_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the device supports VK_EXT_image_robustness.
|
|
||||||
bool IsExtImageRobustnessSupported() const {
|
|
||||||
return extensions.image_robustness;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if robustImageAccess is supported.
|
|
||||||
bool IsRobustImageAccessSupported() const {
|
|
||||||
return features.image_robustness.robustImageAccess;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if the device supports VK_EXT_robustness2.
|
|
||||||
bool IsExtRobustness2Supported() const {
|
|
||||||
return extensions.robustness_2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if robustBufferAccess2 is supported.
|
|
||||||
bool IsRobustBufferAccess2Supported() const {
|
|
||||||
return features.robustness2.robustBufferAccess2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if robustImageAccess2 is supported.
|
|
||||||
bool IsRobustImageAccess2Supported() const {
|
|
||||||
return features.robustness2.robustImageAccess2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if nullDescriptor is supported.
|
|
||||||
bool IsNullDescriptorSupported() const {
|
|
||||||
return features.robustness2.nullDescriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if customBorderColors feature is available.
|
/// Returns true if customBorderColors feature is available.
|
||||||
bool IsCustomBorderColorsSupported() const {
|
bool IsCustomBorderColorsSupported() const {
|
||||||
return features.custom_border_color.customBorderColors;
|
return features.custom_border_color.customBorderColors;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue