summaryrefslogtreecommitdiffstats
path: root/src/video_core/regs_texturing.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-06 06:33:32 +0200
committerGitHub <noreply@github.com>2017-05-06 06:33:32 +0200
commit2a01a03375401f4110a3a80de8ebf9bd48e46bc7 (patch)
tree91c3dd5e60e0d977406b8e39adc1732d09a9d1ce /src/video_core/regs_texturing.h
parentCreate a random console_unique_id (#2668) (diff)
parentpica: shader_dirty if texture2 coord changed (diff)
downloadyuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.gz
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.bz2
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.lz
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.xz
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.zst
yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.zip
Diffstat (limited to 'src/video_core/regs_texturing.h')
-rw-r--r--src/video_core/regs_texturing.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/video_core/regs_texturing.h b/src/video_core/regs_texturing.h
index 0b62da145..8a7c6efe4 100644
--- a/src/video_core/regs_texturing.h
+++ b/src/video_core/regs_texturing.h
@@ -122,7 +122,11 @@ struct TexturingRegs {
BitField<0, 1, u32> texture0_enable;
BitField<1, 1, u32> texture1_enable;
BitField<2, 1, u32> texture2_enable;
- };
+ BitField<8, 2, u32> texture3_coordinates; // TODO: unimplemented
+ BitField<10, 1, u32> texture3_enable; // TODO: unimplemented
+ BitField<13, 1, u32> texture2_use_coord1;
+ BitField<16, 1, u32> clear_texture_cache; // TODO: unimplemented
+ } main_config;
TextureConfig texture0;
INSERT_PADDING_WORDS(0x8);
BitField<0, 4, TextureFormat> texture0_format;
@@ -142,9 +146,9 @@ struct TexturingRegs {
};
const std::array<FullTextureConfig, 3> GetTextures() const {
return {{
- {texture0_enable.ToBool(), texture0, texture0_format},
- {texture1_enable.ToBool(), texture1, texture1_format},
- {texture2_enable.ToBool(), texture2, texture2_format},
+ {main_config.texture0_enable.ToBool(), texture0, texture0_format},
+ {main_config.texture1_enable.ToBool(), texture1, texture1_format},
+ {main_config.texture2_enable.ToBool(), texture2, texture2_format},
}};
}