diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 00:32:18 -0400 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:27 -0400 |
commit | 6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb (patch) | |
tree | 600283ca680de2c1efc2fd14bd24ca9862ccf125 /src/shader_recompiler/profile.h | |
parent | b126987c59964d81ae3705ad7ad6c0ace8714e19 (diff) |
spirv: Implement alpha test
Diffstat (limited to 'src/shader_recompiler/profile.h')
-rw-r--r-- | src/shader_recompiler/profile.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h index 5ecae71b95..c26017d75f 100644 --- a/src/shader_recompiler/profile.h +++ b/src/shader_recompiler/profile.h @@ -5,8 +5,8 @@ #pragma once #include <array> -#include <vector> #include <optional> +#include <vector> #include "common/common_types.h" @@ -27,6 +27,17 @@ enum class InputTopology { TrianglesAdjacency, }; +enum class CompareFunction { + Never, + Less, + Equal, + LessThanEqual, + Greater, + NotEqual, + GreaterThanEqual, + Always, +}; + struct TransformFeedbackVarying { u32 buffer{}; u32 stride{}; @@ -66,6 +77,8 @@ struct Profile { InputTopology input_topology{}; std::optional<float> fixed_state_point_size; + std::optional<CompareFunction> alpha_test_func; + float alpha_test_reference{}; std::vector<TransformFeedbackVarying> xfb_varyings; }; |