summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/profile.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-04-14 06:32:18 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:27 +0200
commit6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb (patch)
tree600283ca680de2c1efc2fd14bd24ca9862ccf125 /src/shader_recompiler/profile.h
parentshader: Implement transform feedbacks and define file format (diff)
downloadyuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar.gz
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar.bz2
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar.lz
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar.xz
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.tar.zst
yuzu-6c512f4bffde6bd8e4dbc74ed27cc84cd7fffadb.zip
Diffstat (limited to 'src/shader_recompiler/profile.h')
-rw-r--r--src/shader_recompiler/profile.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h
index 5ecae71b9..c26017d75 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;
};