summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-27 03:18:17 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commitd171083d53e106c8c5131522fdc81d51360c562d (patch)
tree282cbd1306616e969166e9ddc926bc51c1c15803 /src/shader_recompiler/backend/glsl/emit_context.h
parentglsl: Implement some attribute getters and setters (diff)
downloadyuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.gz
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.bz2
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.lz
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.xz
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.zst
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.h8
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 087eaff6a..1cd051b24 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.h
+++ b/src/shader_recompiler/backend/glsl/emit_context.h
@@ -6,6 +6,8 @@
#include <string>
#include <utility>
+#include <vector>
+
#include <fmt/format.h>
#include "shader_recompiler/backend/glsl/reg_alloc.h"
@@ -109,11 +111,17 @@ public:
std::string_view stage_name = "invalid";
std::string_view attrib_name = "invalid";
+ std::vector<u32> texture_buffer_bindings;
+ std::vector<u32> image_buffer_bindings;
+ std::vector<u32> texture_bindings;
+ std::vector<u32> image_bindings;
+
private:
void SetupExtensions(std::string& header);
void DefineConstantBuffers();
void DefineStorageBuffers();
void DefineHelperFunctions();
+ void SetupImages(Bindings& bindings);
};
} // namespace Shader::Backend::GLSL