diff options
| author | 2021-06-24 02:41:09 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:39 -0400 | |
| commit | 7dafa96ab59892b7f1fbffdb61e4326e6443955f (patch) | |
| tree | 5ab58d56860db635542ea1ec24be258bd86b40b9 /src/video_core/engines | |
| parent | vk_graphics_pipeline: Implement conservative rendering (diff) | |
| download | yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.gz yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.xz yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.zip | |
shader: Rework varyings and implement passthrough geometry shaders
Put all varyings into a single std::bitset with helpers to access it.
Implement passthrough geometry shaders using host's.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index da2ded671..471d5686a 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -961,7 +961,11 @@ public: | |||
| 961 | 961 | ||
| 962 | SamplerIndex sampler_index; | 962 | SamplerIndex sampler_index; |
| 963 | 963 | ||
| 964 | INSERT_PADDING_WORDS_NOINIT(0x25); | 964 | INSERT_PADDING_WORDS_NOINIT(0x2); |
| 965 | |||
| 966 | std::array<u32, 8> gp_passthrough_mask; | ||
| 967 | |||
| 968 | INSERT_PADDING_WORDS_NOINIT(0x1B); | ||
| 965 | 969 | ||
| 966 | u32 depth_test_enable; | 970 | u32 depth_test_enable; |
| 967 | 971 | ||
| @@ -1628,6 +1632,7 @@ ASSERT_REG_POSITION(zeta_width, 0x48a); | |||
| 1628 | ASSERT_REG_POSITION(zeta_height, 0x48b); | 1632 | ASSERT_REG_POSITION(zeta_height, 0x48b); |
| 1629 | ASSERT_REG_POSITION(zeta_depth, 0x48c); | 1633 | ASSERT_REG_POSITION(zeta_depth, 0x48c); |
| 1630 | ASSERT_REG_POSITION(sampler_index, 0x48D); | 1634 | ASSERT_REG_POSITION(sampler_index, 0x48D); |
| 1635 | ASSERT_REG_POSITION(gp_passthrough_mask, 0x490); | ||
| 1631 | ASSERT_REG_POSITION(depth_test_enable, 0x4B3); | 1636 | ASSERT_REG_POSITION(depth_test_enable, 0x4B3); |
| 1632 | ASSERT_REG_POSITION(independent_blend_enable, 0x4B9); | 1637 | ASSERT_REG_POSITION(independent_blend_enable, 0x4B9); |
| 1633 | ASSERT_REG_POSITION(depth_write_enabled, 0x4BA); | 1638 | ASSERT_REG_POSITION(depth_write_enabled, 0x4BA); |