diff options
Diffstat (limited to 'src/shader_recompiler/shader_info.h')
| -rw-r--r-- | src/shader_recompiler/shader_info.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index 44236b6b1..f93181e1e 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h | |||
| @@ -65,6 +65,8 @@ enum class Interpolation { | |||
| 65 | struct ConstantBufferDescriptor { | 65 | struct ConstantBufferDescriptor { |
| 66 | u32 index; | 66 | u32 index; |
| 67 | u32 count; | 67 | u32 count; |
| 68 | |||
| 69 | auto operator<=>(const ConstantBufferDescriptor&) const = default; | ||
| 68 | }; | 70 | }; |
| 69 | 71 | ||
| 70 | struct StorageBufferDescriptor { | 72 | struct StorageBufferDescriptor { |
| @@ -72,6 +74,8 @@ struct StorageBufferDescriptor { | |||
| 72 | u32 cbuf_offset; | 74 | u32 cbuf_offset; |
| 73 | u32 count; | 75 | u32 count; |
| 74 | bool is_written; | 76 | bool is_written; |
| 77 | |||
| 78 | auto operator<=>(const StorageBufferDescriptor&) const = default; | ||
| 75 | }; | 79 | }; |
| 76 | 80 | ||
| 77 | struct TextureBufferDescriptor { | 81 | struct TextureBufferDescriptor { |
| @@ -84,6 +88,8 @@ struct TextureBufferDescriptor { | |||
| 84 | u32 secondary_shift_left; | 88 | u32 secondary_shift_left; |
| 85 | u32 count; | 89 | u32 count; |
| 86 | u32 size_shift; | 90 | u32 size_shift; |
| 91 | |||
| 92 | auto operator<=>(const TextureBufferDescriptor&) const = default; | ||
| 87 | }; | 93 | }; |
| 88 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; | 94 | using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>; |
| 89 | 95 | ||
| @@ -95,6 +101,8 @@ struct ImageBufferDescriptor { | |||
| 95 | u32 cbuf_offset; | 101 | u32 cbuf_offset; |
| 96 | u32 count; | 102 | u32 count; |
| 97 | u32 size_shift; | 103 | u32 size_shift; |
| 104 | |||
| 105 | auto operator<=>(const ImageBufferDescriptor&) const = default; | ||
| 98 | }; | 106 | }; |
| 99 | using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>; | 107 | using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>; |
| 100 | 108 | ||
| @@ -110,6 +118,8 @@ struct TextureDescriptor { | |||
| 110 | u32 secondary_shift_left; | 118 | u32 secondary_shift_left; |
| 111 | u32 count; | 119 | u32 count; |
| 112 | u32 size_shift; | 120 | u32 size_shift; |
| 121 | |||
| 122 | auto operator<=>(const TextureDescriptor&) const = default; | ||
| 113 | }; | 123 | }; |
| 114 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; | 124 | using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>; |
| 115 | 125 | ||
| @@ -122,6 +132,8 @@ struct ImageDescriptor { | |||
| 122 | u32 cbuf_offset; | 132 | u32 cbuf_offset; |
| 123 | u32 count; | 133 | u32 count; |
| 124 | u32 size_shift; | 134 | u32 size_shift; |
| 135 | |||
| 136 | auto operator<=>(const ImageDescriptor&) const = default; | ||
| 125 | }; | 137 | }; |
| 126 | using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>; | 138 | using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>; |
| 127 | 139 | ||