diff options
Diffstat (limited to 'src/shader_recompiler/shader_info.h')
| -rw-r--r-- | src/shader_recompiler/shader_info.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index d9c6e92db..f93181e1e 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h | |||
| @@ -16,6 +16,12 @@ | |||
| 16 | 16 | ||
| 17 | namespace Shader { | 17 | namespace Shader { |
| 18 | 18 | ||
| 19 | enum class ReplaceConstant : u32 { | ||
| 20 | BaseInstance, | ||
| 21 | BaseVertex, | ||
| 22 | DrawID, | ||
| 23 | }; | ||
| 24 | |||
| 19 | enum class TextureType : u32 { | 25 | enum class TextureType : u32 { |
| 20 | Color1D, | 26 | Color1D, |
| 21 | ColorArray1D, | 27 | ColorArray1D, |
| @@ -59,6 +65,8 @@ enum class Interpolation { | |||
| 59 | struct ConstantBufferDescriptor { | 65 | struct ConstantBufferDescriptor { |
| 60 | u32 index; | 66 | u32 index; |
| 61 | u32 count; | 67 | u32 count; |
| 68 | |||
| 69 | auto operator<=>(const ConstantBufferDescriptor&) const = default; | ||
| 62 | }; | 70 | }; |
| 63 | 71 | ||
| 64 | struct StorageBufferDescriptor { | 72 | struct StorageBufferDescriptor { |
| @@ -66,6 +74,8 @@ struct StorageBufferDescriptor { | |||
| 66 | u32 cbuf_offset; | 74 | u32 cbuf_offset; |
| 67 | u32 count; | 75 | u32 count; |
| 68 | bool is_written; | 76 | bool is_written; |
| 77 | |||
| 78 | auto operator<=>(const StorageBufferDescriptor&) const = default; | ||
| 69 | }; | 79 | }; |
| 70 | 80 | ||
| 71 | struct TextureBufferDescriptor { | 81 | struct TextureBufferDescriptor { |
| @@ -78,6 +88,8 @@ struct TextureBufferDescriptor { | |||
| 78 | u32 secondary_shift_left; | 88 | u32 secondary_shift_left; |
| 79 | u32 count; | 89 | u32 count; |
| 80 | u32 size_shift; | 90 | u32 size_shift; |
| 91 | |||
| 92 | auto operator<=>(const TextureBufferDescriptor&) const = default; | ||
| 81 | }; | 93 | }; |
| 82 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; | 94 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; |
| 83 | 95 | ||
| @@ -89,6 +101,8 @@ struct ImageBufferDescriptor { | |||
| 89 | u32 cbuf_offset; | 101 | u32 cbuf_offset; |
| 90 | u32 count; | 102 | u32 count; |
| 91 | u32 size_shift; | 103 | u32 size_shift; |
| 104 | |||
| 105 | auto operator<=>(const ImageBufferDescriptor&) const = default; | ||
| 92 | }; | 106 | }; |
| 93 | using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>; | 107 | using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>; |
| 94 | 108 | ||
| @@ -104,6 +118,8 @@ struct TextureDescriptor { | |||
| 104 | u32 secondary_shift_left; | 118 | u32 secondary_shift_left; |
| 105 | u32 count; | 119 | u32 count; |
| 106 | u32 size_shift; | 120 | u32 size_shift; |
| 121 | |||
| 122 | auto operator<=>(const TextureDescriptor&) const = default; | ||
| 107 | }; | 123 | }; |
| 108 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; | 124 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; |
| 109 | 125 | ||
| @@ -116,6 +132,8 @@ struct ImageDescriptor { | |||
| 116 | u32 cbuf_offset; | 132 | u32 cbuf_offset; |
| 117 | u32 count; | 133 | u32 count; |
| 118 | u32 size_shift; | 134 | u32 size_shift; |
| 135 | |||
| 136 | auto operator<=>(const ImageDescriptor&) const = default; | ||
| 119 | }; | 137 | }; |
| 120 | using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>; | 138 | using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>; |
| 121 | 139 | ||