[Vulkan] Fix alignment related validation errors
This commit is contained in:
@@ -624,6 +624,8 @@ std::unique_ptr<VulkanDevice> VulkanDevice::CreateIfSupported(
|
||||
if (properties.apiVersion >= VK_MAKE_API_VERSION(0, 1, 2, 0)) {
|
||||
if (with_gpu_emulation) {
|
||||
XE_UI_VULKAN_FEATURE_2(features_1_2, samplerMirrorClampToEdge);
|
||||
XE_UI_VULKAN_FEATURE_2(features_1_2, uniformBufferStandardLayout);
|
||||
XE_UI_VULKAN_FEATURE_2(features_1_2, scalarBlockLayout);
|
||||
}
|
||||
} else {
|
||||
if (ext_1_2_KHR_sampler_mirror_clamp_to_edge) {
|
||||
|
||||
@@ -118,6 +118,14 @@ class VulkanDevice {
|
||||
|
||||
bool samplerMirrorClampToEdge = false;
|
||||
|
||||
// VK_KHR_uniform_buffer_standard_layout (#253, promoted to 1.2)
|
||||
|
||||
bool uniformBufferStandardLayout = false;
|
||||
|
||||
// VK_EXT_scalar_block_layout (#222, promoted to 1.2)
|
||||
|
||||
bool scalarBlockLayout = false;
|
||||
|
||||
// VK_KHR_portability_subset (#164)
|
||||
|
||||
bool constantAlphaColorBlendFactors = false;
|
||||
|
||||
Reference in New Issue
Block a user