mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
shader_recompiler: Add comparison operators to descriptor types
This commit is contained in:
parent
bbfad79c89
commit
c1cc99584c
1 changed files with 12 additions and 0 deletions
|
@ -65,6 +65,8 @@ enum class Interpolation {
|
||||||
struct ConstantBufferDescriptor {
|
struct ConstantBufferDescriptor {
|
||||||
u32 index;
|
u32 index;
|
||||||
u32 count;
|
u32 count;
|
||||||
|
|
||||||
|
auto operator<=>(const ConstantBufferDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StorageBufferDescriptor {
|
struct StorageBufferDescriptor {
|
||||||
|
@ -72,6 +74,8 @@ struct StorageBufferDescriptor {
|
||||||
u32 cbuf_offset;
|
u32 cbuf_offset;
|
||||||
u32 count;
|
u32 count;
|
||||||
bool is_written;
|
bool is_written;
|
||||||
|
|
||||||
|
auto operator<=>(const StorageBufferDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TextureBufferDescriptor {
|
struct TextureBufferDescriptor {
|
||||||
|
@ -84,6 +88,8 @@ struct TextureBufferDescriptor {
|
||||||
u32 secondary_shift_left;
|
u32 secondary_shift_left;
|
||||||
u32 count;
|
u32 count;
|
||||||
u32 size_shift;
|
u32 size_shift;
|
||||||
|
|
||||||
|
auto operator<=>(const TextureBufferDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>;
|
using TextureBufferDescriptors = boost::container::small_vector<TextureBufferDescriptor, 6>;
|
||||||
|
|
||||||
|
@ -95,6 +101,8 @@ struct ImageBufferDescriptor {
|
||||||
u32 cbuf_offset;
|
u32 cbuf_offset;
|
||||||
u32 count;
|
u32 count;
|
||||||
u32 size_shift;
|
u32 size_shift;
|
||||||
|
|
||||||
|
auto operator<=>(const ImageBufferDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>;
|
using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescriptor, 2>;
|
||||||
|
|
||||||
|
@ -110,6 +118,8 @@ struct TextureDescriptor {
|
||||||
u32 secondary_shift_left;
|
u32 secondary_shift_left;
|
||||||
u32 count;
|
u32 count;
|
||||||
u32 size_shift;
|
u32 size_shift;
|
||||||
|
|
||||||
|
auto operator<=>(const TextureDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>;
|
using TextureDescriptors = boost::container::small_vector<TextureDescriptor, 12>;
|
||||||
|
|
||||||
|
@ -122,6 +132,8 @@ struct ImageDescriptor {
|
||||||
u32 cbuf_offset;
|
u32 cbuf_offset;
|
||||||
u32 count;
|
u32 count;
|
||||||
u32 size_shift;
|
u32 size_shift;
|
||||||
|
|
||||||
|
auto operator<=>(const ImageDescriptor&) const = default;
|
||||||
};
|
};
|
||||||
using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>;
|
using ImageDescriptors = boost::container::small_vector<ImageDescriptor, 4>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue