summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-09-19 07:18:20 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2018-10-06 17:27:54 +0200
commit752faff2bcfa536a9efc81416156b1d42d05a2cc (patch)
treec048696cd6e5a7798ef5985662d30d197a8d90e1 /src/video_core/textures
parentImplemented Texture Processing Modes in TEXS and TLDS (diff)
downloadyuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar.gz
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar.bz2
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar.lz
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar.xz
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.tar.zst
yuzu-752faff2bcfa536a9efc81416156b1d42d05a2cc.zip
Diffstat (limited to 'src/video_core/textures')
-rw-r--r--src/video_core/textures/texture.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h
index 14aea4838..8f31d825a 100644
--- a/src/video_core/textures/texture.h
+++ b/src/video_core/textures/texture.h
@@ -227,6 +227,17 @@ enum class WrapMode : u32 {
MirrorOnceClampOGL = 7,
};
+enum class DepthCompareFunc : u32 {
+ Never = 0,
+ Less = 1,
+ Equal = 2,
+ LessEqual = 3,
+ Greater = 4,
+ NotEqual = 5,
+ GreaterEqual = 6,
+ Always = 7,
+};
+
enum class TextureFilter : u32 {
Nearest = 1,
Linear = 2,
@@ -244,7 +255,7 @@ struct TSCEntry {
BitField<3, 3, WrapMode> wrap_v;
BitField<6, 3, WrapMode> wrap_p;
BitField<9, 1, u32> depth_compare_enabled;
- BitField<10, 3, u32> depth_compare_func;
+ BitField<10, 3, DepthCompareFunc> depth_compare_func;
};
union {
BitField<0, 2, TextureFilter> mag_filter;