mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-24 21:06:55 +02:00
shader: share nested pointer-table image and sampler selection
Co-authored-by: fxpw <fxpw@outlook.com>
This commit is contained in:
@@ -34,8 +34,16 @@ struct ResourceSpecialization {
|
||||
bool operator==(const Image&) const = default;
|
||||
};
|
||||
|
||||
struct Sampler {
|
||||
uint32_t indirect_root = SamplerResource::NoIndirectSampler;
|
||||
uint32_t indirect_mapping_offset = 0;
|
||||
uint32_t indirect_search_iterations = 0;
|
||||
bool operator==(const Sampler&) const = default;
|
||||
};
|
||||
|
||||
std::vector<Buffer> buffers;
|
||||
std::vector<Image> images;
|
||||
std::vector<Sampler> samplers;
|
||||
|
||||
bool operator==(const ResourceSpecialization&) const = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user