diff options
author | wwylele <wwylele@gmail.com> | 2017-07-24 13:13:33 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-08-10 00:53:08 +0200 |
commit | db309b2423a996cb792273080e73906b07f8b45b (patch) | |
tree | 3cd253487dc6e533fd39e89edb3a0c955826efe5 /src/video_core/regs_shader.h | |
parent | Merge pull request #2862 from j-selby/update-cryptopp (diff) | |
download | yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar.gz yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar.bz2 yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar.lz yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar.xz yuzu-db309b2423a996cb792273080e73906b07f8b45b.tar.zst yuzu-db309b2423a996cb792273080e73906b07f8b45b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/regs_shader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/regs_shader.h b/src/video_core/regs_shader.h index ddb1ee451..c15d4d162 100644 --- a/src/video_core/regs_shader.h +++ b/src/video_core/regs_shader.h @@ -24,9 +24,16 @@ struct ShaderRegs { INSERT_PADDING_WORDS(0x4); + enum ShaderMode { + GS = 0x08, + VS = 0xA0, + }; + union { // Number of input attributes to shader unit - 1 BitField<0, 4, u32> max_input_attribute_index; + BitField<8, 8, u32> input_to_uniform; + BitField<24, 8, ShaderMode> shader_mode; }; // Offset to shader program entry point (in words) |