diff options
Diffstat (limited to 'src/video_core/textures/texture.h')
| -rw-r--r-- | src/video_core/textures/texture.h | 13 |
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 { | |||
| 227 | MirrorOnceClampOGL = 7, | 227 | MirrorOnceClampOGL = 7, |
| 228 | }; | 228 | }; |
| 229 | 229 | ||
| 230 | enum class DepthCompareFunc : u32 { | ||
| 231 | Never = 0, | ||
| 232 | Less = 1, | ||
| 233 | Equal = 2, | ||
| 234 | LessEqual = 3, | ||
| 235 | Greater = 4, | ||
| 236 | NotEqual = 5, | ||
| 237 | GreaterEqual = 6, | ||
| 238 | Always = 7, | ||
| 239 | }; | ||
| 240 | |||
| 230 | enum class TextureFilter : u32 { | 241 | enum class TextureFilter : u32 { |
| 231 | Nearest = 1, | 242 | Nearest = 1, |
| 232 | Linear = 2, | 243 | Linear = 2, |
| @@ -244,7 +255,7 @@ struct TSCEntry { | |||
| 244 | BitField<3, 3, WrapMode> wrap_v; | 255 | BitField<3, 3, WrapMode> wrap_v; |
| 245 | BitField<6, 3, WrapMode> wrap_p; | 256 | BitField<6, 3, WrapMode> wrap_p; |
| 246 | BitField<9, 1, u32> depth_compare_enabled; | 257 | BitField<9, 1, u32> depth_compare_enabled; |
| 247 | BitField<10, 3, u32> depth_compare_func; | 258 | BitField<10, 3, DepthCompareFunc> depth_compare_func; |
| 248 | }; | 259 | }; |
| 249 | union { | 260 | union { |
| 250 | BitField<0, 2, TextureFilter> mag_filter; | 261 | BitField<0, 2, TextureFilter> mag_filter; |