summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-12 03:47:08 +0200
committerbunnei <bunneidev@gmail.com>2016-05-12 03:47:08 +0200
commitf6eb62d0628d31efc4f93a0057ebd85bb39bc0fe (patch)
treefc06c2b51cbfbf4867ab885d32b0427ddc56e3b6 /src/video_core/pica.h
parentMerge pull request #1780 from JayFoxRox/shadersetup-class (diff)
parentOpenGL: Implement texture type 3 (diff)
downloadyuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.gz
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.bz2
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.lz
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.xz
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.tar.zst
yuzu-f6eb62d0628d31efc4f93a0057ebd85bb39bc0fe.zip
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index a81a7b984..86c0a0096 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -138,6 +138,15 @@ struct Regs {
INSERT_PADDING_WORDS(0x12);
struct TextureConfig {
+ enum TextureType : u32 {
+ Texture2D = 0,
+ TextureCube = 1,
+ Shadow2D = 2,
+ Projection2D = 3,
+ ShadowCube = 4,
+ Disabled = 5,
+ };
+
enum WrapMode : u32 {
ClampToEdge = 0,
ClampToBorder = 1,
@@ -168,6 +177,7 @@ struct Regs {
BitField< 2, 1, TextureFilter> min_filter;
BitField< 8, 2, WrapMode> wrap_t;
BitField<12, 2, WrapMode> wrap_s;
+ BitField<28, 2, TextureType> type; ///< @note Only valid for texture 0 according to 3DBrew.
};
INSERT_PADDING_WORDS(0x1);