summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/host_translate_info.h
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2022-11-23 21:30:23 +0000
committerBilly Laws <blaws05@gmail.com>2023-01-05 22:13:07 +0000
commit8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e (patch)
treea250fb7a6485109609c5f89fee55fd73549b3a19 /src/shader_recompiler/host_translate_info.h
parent3f0985c7b01bbc5e7172bffb137f23385088aca6 (diff)
shader_recompiler: Align SSBO offsets to meet host requirements
We can take advantage of SSBO addresses being passed in a constant bufer to account for the extra alignment requirements in the shader itself.
Diffstat (limited to 'src/shader_recompiler/host_translate_info.h')
-rw-r--r--src/shader_recompiler/host_translate_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/host_translate_info.h b/src/shader_recompiler/host_translate_info.h
index d5d279554..7df090124 100644
--- a/src/shader_recompiler/host_translate_info.h
+++ b/src/shader_recompiler/host_translate_info.h
@@ -15,6 +15,7 @@ struct HostTranslateInfo {
bool needs_demote_reorder{}; ///< True when the device needs DemoteToHelperInvocation reordered
bool support_snorm_render_buffer{}; ///< True when the device supports SNORM render buffers
bool support_viewport_index_layer{}; ///< True when the device supports gl_Layer in VS
+ u32 min_ssbo_alignment{}; ///< Minimum alignment supported by the device for SSBOs
};
} // namespace Shader