diff options
author | bunnei <bunneidev@gmail.com> | 2017-09-08 05:02:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 05:02:59 +0200 |
commit | 11baa40d75d8a479bd738a05e91bba6f09856fe5 (patch) | |
tree | 2a7affcefd22d5332970c7a28a04c139aa9a6654 /src/video_core/regs_shader.h | |
parent | Merge pull request #2918 from jroweboy/remove-debug (diff) | |
parent | pica/command_processor: build geometry pipeline and run geometry shader (diff) | |
download | yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar.gz yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar.bz2 yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar.lz yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar.xz yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.tar.zst yuzu-11baa40d75d8a479bd738a05e91bba6f09856fe5.zip |
Diffstat (limited to 'src/video_core/regs_shader.h')
-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) |