mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 16:23:05 +00:00
render: use native clears for stencil fill shaders
This commit is contained in:
1 parent
6a187ac67e
commit
bec7c510c2
10 files changed
+457
-115
No files matched your search
@@ -16,13 +16,16 @@ struct DescriptorValue {
|
||||
}
|
||||
};
|
||||
|
||||
struct BufferFill {
|
||||
uint32_t buffer = 0;
|
||||
uint32_t group_stride = 0;
|
||||
uint32_t element_size = 0;
|
||||
uint32_t value = 0;
|
||||
enum class UniformFillKind { None, Buffer, Image };
|
||||
|
||||
bool operator==(const BufferFill&) const = default;
|
||||
struct UniformFill {
|
||||
UniformFillKind kind = UniformFillKind::None;
|
||||
uint32_t resource = 0;
|
||||
std::array<uint32_t, 3> group_stride {};
|
||||
uint32_t words = 0;
|
||||
uint32_t value = 0;
|
||||
|
||||
bool operator==(const UniformFill&) const = default;
|
||||
};
|
||||
|
||||
struct ResourceSnapshot {
|
||||
@@ -31,7 +34,7 @@ struct ResourceSnapshot {
|
||||
std::vector<DescriptorValue> samplers;
|
||||
std::vector<uint32_t> flattened_srt;
|
||||
std::vector<uint32_t> user_data;
|
||||
BufferFill buffer_fill;
|
||||
UniformFill uniform_fill;
|
||||
};
|
||||
|
||||
} // namespace Libs::Graphics::ShaderRecompiler::IR
|
||||
|
||||
Reference in new issue
Block a user