From dbd882ddeb1a1a9233c0085d0b8ccb022db385b2 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sat, 27 Mar 2021 04:59:58 -0300 Subject: shader: Better interpolation and disabled attributes support --- src/shader_recompiler/shader_info.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/shader_recompiler/shader_info.h') diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index 8ab66bb2a..9111159f3 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h @@ -31,6 +31,17 @@ enum class TextureType : u32 { ShadowArrayCube, }; +enum class Interpolation { + Smooth, + Flat, + NoPerspective, +}; + +struct InputVarying { + Interpolation interpolation{Interpolation::Smooth}; + bool used{false}; +}; + struct TextureDescriptor { TextureType type; u32 cbuf_index; @@ -58,7 +69,7 @@ struct Info { bool uses_local_invocation_id{}; bool uses_subgroup_invocation_id{}; - std::array loads_generics{}; + std::array input_generics{}; bool loads_position{}; bool loads_instance_id{}; bool loads_vertex_id{}; -- cgit v1.2.3