diff options
| author | 2021-04-14 21:36:36 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:27 -0400 | |
| commit | 416e1b7441d34512fcb0ffed014daf7ca4bb62bd (patch) | |
| tree | fa14781ad4969613919a8bcd68b887b9b7a98304 /src/shader_recompiler/shader_info.h | |
| parent | spirv: Implement Layer stores (diff) | |
| download | yuzu-416e1b7441d34512fcb0ffed014daf7ca4bb62bd.tar.gz yuzu-416e1b7441d34512fcb0ffed014daf7ca4bb62bd.tar.xz yuzu-416e1b7441d34512fcb0ffed014daf7ca4bb62bd.zip | |
spirv: Implement image buffers
Diffstat (limited to 'src/shader_recompiler/shader_info.h')
| -rw-r--r-- | src/shader_recompiler/shader_info.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index e078b0fa1..336c6131a 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h | |||
| @@ -67,6 +67,15 @@ struct TextureBufferDescriptor { | |||
| 67 | }; | 67 | }; |
| 68 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; | 68 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; |
| 69 | 69 | ||
| 70 | struct ImageBufferDescriptor { | ||
| 71 | ImageFormat format; | ||
| 72 | bool is_written; | ||
| 73 | u32 cbuf_index; | ||
| 74 | u32 cbuf_offset; | ||
| 75 | u32 count; | ||
| 76 | }; | ||
| 77 | using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>; | ||
| 78 | |||
| 70 | struct TextureDescriptor { | 79 | struct TextureDescriptor { |
| 71 | TextureType type; | 80 | TextureType type; |
| 72 | bool is_depth; | 81 | bool is_depth; |
| @@ -153,6 +162,7 @@ struct Info { | |||
| 153 | constant_buffer_descriptors; | 162 | constant_buffer_descriptors; |
| 154 | boost::container::static_vector<StorageBufferDescriptor, MAX_SSBOS> storage_buffers_descriptors; | 163 | boost::container::static_vector<StorageBufferDescriptor, MAX_SSBOS> storage_buffers_descriptors; |
| 155 | TextureBufferDescriptors texture_buffer_descriptors; | 164 | TextureBufferDescriptors texture_buffer_descriptors; |
| 165 | ImageBufferDescriptors image_buffer_descriptors; | ||
| 156 | TextureDescriptors texture_descriptors; | 166 | TextureDescriptors texture_descriptors; |
| 157 | ImageDescriptors image_descriptors; | 167 | ImageDescriptors image_descriptors; |
| 158 | }; | 168 | }; |