diff options
| author | 2021-04-22 16:17:59 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | d10cf55353175b13bed4cf18791e080ecb7fd95b (patch) | |
| tree | 9e26b823d7b48f532914a0511a157c14806debf5 /src/shader_recompiler/backend/spirv/emit_context.h | |
| parent | shader: Refactor atomic_operations_global_memory (diff) | |
| download | yuzu-d10cf55353175b13bed4cf18791e080ecb7fd95b.tar.gz yuzu-d10cf55353175b13bed4cf18791e080ecb7fd95b.tar.xz yuzu-d10cf55353175b13bed4cf18791e080ecb7fd95b.zip | |
shader: Implement indexed textures
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.h b/src/shader_recompiler/backend/spirv/emit_context.h index a4503c7ab..c52544fb7 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.h +++ b/src/shader_recompiler/backend/spirv/emit_context.h | |||
| @@ -32,17 +32,26 @@ private: | |||
| 32 | struct TextureDefinition { | 32 | struct TextureDefinition { |
| 33 | Id id; | 33 | Id id; |
| 34 | Id sampled_type; | 34 | Id sampled_type; |
| 35 | Id pointer_type; | ||
| 35 | Id image_type; | 36 | Id image_type; |
| 37 | u32 count; | ||
| 38 | }; | ||
| 39 | |||
| 40 | struct TextureBufferDefinition { | ||
| 41 | Id id; | ||
| 42 | u32 count; | ||
| 36 | }; | 43 | }; |
| 37 | 44 | ||
| 38 | struct ImageBufferDefinition { | 45 | struct ImageBufferDefinition { |
| 39 | Id id; | 46 | Id id; |
| 40 | Id image_type; | 47 | Id image_type; |
| 48 | u32 count; | ||
| 41 | }; | 49 | }; |
| 42 | 50 | ||
| 43 | struct ImageDefinition { | 51 | struct ImageDefinition { |
| 44 | Id id; | 52 | Id id; |
| 45 | Id image_type; | 53 | Id image_type; |
| 54 | u32 count; | ||
| 46 | }; | 55 | }; |
| 47 | 56 | ||
| 48 | struct UniformDefinitions { | 57 | struct UniformDefinitions { |
| @@ -162,7 +171,7 @@ public: | |||
| 162 | 171 | ||
| 163 | std::array<UniformDefinitions, Info::MAX_CBUFS> cbufs{}; | 172 | std::array<UniformDefinitions, Info::MAX_CBUFS> cbufs{}; |
| 164 | std::array<StorageDefinitions, Info::MAX_SSBOS> ssbos{}; | 173 | std::array<StorageDefinitions, Info::MAX_SSBOS> ssbos{}; |
| 165 | std::vector<Id> texture_buffers; | 174 | std::vector<TextureBufferDefinition> texture_buffers; |
| 166 | std::vector<ImageBufferDefinition> image_buffers; | 175 | std::vector<ImageBufferDefinition> image_buffers; |
| 167 | std::vector<TextureDefinition> textures; | 176 | std::vector<TextureDefinition> textures; |
| 168 | std::vector<ImageDefinition> images; | 177 | std::vector<ImageDefinition> images; |