diff options
Diffstat (limited to 'src/shader_recompiler/shader_info.h')
| -rw-r--r-- | src/shader_recompiler/shader_info.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index 41bb5b9a1..e6f0de8d8 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h | |||
| @@ -29,6 +29,7 @@ enum class TextureType : u32 { | |||
| 29 | Shadow3D, | 29 | Shadow3D, |
| 30 | ShadowCube, | 30 | ShadowCube, |
| 31 | ShadowArrayCube, | 31 | ShadowArrayCube, |
| 32 | Buffer, | ||
| 32 | }; | 33 | }; |
| 33 | 34 | ||
| 34 | enum class Interpolation { | 35 | enum class Interpolation { |
| @@ -50,6 +51,13 @@ struct TextureDescriptor { | |||
| 50 | }; | 51 | }; |
| 51 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; | 52 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; |
| 52 | 53 | ||
| 54 | struct TextureBufferDescriptor { | ||
| 55 | u32 cbuf_index; | ||
| 56 | u32 cbuf_offset; | ||
| 57 | u32 count; | ||
| 58 | }; | ||
| 59 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 2>; | ||
| 60 | |||
| 53 | struct ConstantBufferDescriptor { | 61 | struct ConstantBufferDescriptor { |
| 54 | u32 index; | 62 | u32 index; |
| 55 | u32 count; | 63 | u32 count; |
| @@ -112,6 +120,7 @@ struct Info { | |||
| 112 | constant_buffer_descriptors; | 120 | constant_buffer_descriptors; |
| 113 | boost::container::static_vector<StorageBufferDescriptor, MAX_SSBOS> storage_buffers_descriptors; | 121 | boost::container::static_vector<StorageBufferDescriptor, MAX_SSBOS> storage_buffers_descriptors; |
| 114 | TextureDescriptors texture_descriptors; | 122 | TextureDescriptors texture_descriptors; |
| 123 | TextureBufferDescriptors texture_buffer_descriptors; | ||
| 115 | }; | 124 | }; |
| 116 | 125 | ||
| 117 | } // namespace Shader | 126 | } // namespace Shader |