summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/profile.h
diff options
context:
space:
mode:
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 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8#include <vector>
9#include <optional> 8#include <optional>
9#include <vector>
10 10
11#include "common/common_types.h" 11#include "common/common_types.h"
12 12
@@ -27,6 +27,17 @@ enum class InputTopology {
27 TrianglesAdjacency, 27 TrianglesAdjacency,
28}; 28};
29 29
30enum class CompareFunction {
31 Never,
32 Less,
33 Equal,
34 LessThanEqual,
35 Greater,
36 NotEqual,
37 GreaterThanEqual,
38 Always,
39};
40
30struct TransformFeedbackVarying { 41struct TransformFeedbackVarying {
31 u32 buffer{}; 42 u32 buffer{};
32 u32 stride{}; 43 u32 stride{};
@@ -66,6 +77,8 @@ struct Profile {
66 InputTopology input_topology{}; 77 InputTopology input_topology{};
67 78
68 std::optional<float> fixed_state_point_size; 79 std::optional<float> fixed_state_point_size;
80 std::optional<CompareFunction> alpha_test_func;
81 float alpha_test_reference{};
69 82
70 std::vector<TransformFeedbackVarying> xfb_varyings; 83 std::vector<TransformFeedbackVarying> xfb_varyings;
71}; 84};