summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-11 08:50:30 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:38 +0200
commite81c73a8748ccfcde56acfee5630116c3950e479 (patch)
tree617a67d3512b228dbaa40b710700dfb79f7bc7bc /src/shader_recompiler/backend/glsl/emit_context.h
parentglsl: Remove Signed Integer variables (diff)
downloadyuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.gz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.bz2
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.lz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.xz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.zst
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h
index 9d8be0c9a..685f56089 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.h
+++ b/src/shader_recompiler/backend/glsl/emit_context.h
@@ -36,6 +36,11 @@ struct GenericElementInfo {
u32 num_components{};
};
+struct TextureImageDefinition {
+ u32 binding;
+ u32 count;
+};
+
class EmitContext {
public:
explicit EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_,
@@ -142,10 +147,10 @@ public:
std::string_view stage_name = "invalid";
std::string_view position_name = "gl_Position";
- std::vector<u32> texture_buffer_bindings;
- std::vector<u32> image_buffer_bindings;
- std::vector<u32> texture_bindings;
- std::vector<u32> image_bindings;
+ std::vector<TextureImageDefinition> texture_buffers;
+ std::vector<TextureImageDefinition> image_buffers;
+ std::vector<TextureImageDefinition> textures;
+ std::vector<TextureImageDefinition> images;
std::array<std::array<GenericElementInfo, 4>, 32> output_generics{};
bool uses_y_direction{};