diff options
| author | 2021-06-24 02:41:09 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:39 -0400 | |
| commit | 7dafa96ab59892b7f1fbffdb61e4326e6443955f (patch) | |
| tree | 5ab58d56860db635542ea1ec24be258bd86b40b9 /src/shader_recompiler/environment.h | |
| 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/shader_recompiler/environment.h')
| -rw-r--r-- | src/shader_recompiler/environment.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/environment.h b/src/shader_recompiler/environment.h index 090bc1c08..8369d0d84 100644 --- a/src/shader_recompiler/environment.h +++ b/src/shader_recompiler/environment.h | |||
| @@ -31,6 +31,10 @@ public: | |||
| 31 | return sph; | 31 | return sph; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | [[nodiscard]] const std::array<u32, 8>& GpPassthroughMask() const noexcept { | ||
| 35 | return gp_passthrough_mask; | ||
| 36 | } | ||
| 37 | |||
| 34 | [[nodiscard]] Stage ShaderStage() const noexcept { | 38 | [[nodiscard]] Stage ShaderStage() const noexcept { |
| 35 | return stage; | 39 | return stage; |
| 36 | } | 40 | } |
| @@ -41,6 +45,7 @@ public: | |||
| 41 | 45 | ||
| 42 | protected: | 46 | protected: |
| 43 | ProgramHeader sph{}; | 47 | ProgramHeader sph{}; |
| 48 | std::array<u32, 8> gp_passthrough_mask{}; | ||
| 44 | Stage stage{}; | 49 | Stage stage{}; |
| 45 | u32 start_address{}; | 50 | u32 start_address{}; |
| 46 | }; | 51 | }; |