diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-02 06:33:03 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:37 +0200 |
commit | f4799e8fa15b92d8d5607dc5dfca4974901ee06c (patch) | |
tree | fe05a0bb667c92f018d08aaf7e410fd55746e0c1 /src/shader_recompiler/backend/glsl/emit_context.h | |
parent | glsl: Yet another gl_ViewportIndex fix attempt (diff) | |
download | yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar.gz yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar.bz2 yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar.lz yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar.xz yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.tar.zst yuzu-f4799e8fa15b92d8d5607dc5dfca4974901ee06c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h index 48786a2c7..5d48675e6 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h @@ -30,6 +30,12 @@ struct Program; namespace Shader::Backend::GLSL { +struct GenericElementInfo { + std::string name{}; + u32 first_element{}; + u32 num_components{}; +}; + class EmitContext { public: explicit EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_, @@ -149,6 +155,7 @@ public: std::vector<u32> image_buffer_bindings; std::vector<u32> texture_bindings; std::vector<u32> image_bindings; + std::array<std::array<GenericElementInfo, 4>, 32> output_generics{}; bool uses_y_direction{}; bool uses_cc_carry{}; @@ -157,6 +164,7 @@ private: void SetupExtensions(std::string& header); void DefineConstantBuffers(Bindings& bindings); void DefineStorageBuffers(Bindings& bindings); + void DefineGenericOutput(size_t index, u32 invocations); void DefineHelperFunctions(); void SetupImages(Bindings& bindings); }; |