mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-29 16:51:20 +00:00
graphics: unify buffer bindings and depth target handling
This commit is contained in:
1 parent
f43567e12c
commit
142b3c20fa
17 files changed
+669
-564
No files matched your search
@@ -705,9 +705,15 @@ struct BindingLayout {
|
||||
uint32_t descriptor_set = 0;
|
||||
uint32_t push_constant_offset = 0;
|
||||
uint32_t push_constant_size = 0;
|
||||
uint32_t buffer_offset_dword = 0;
|
||||
uint32_t buffer_offset_count = 0;
|
||||
std::vector<uint32_t> user_data_registers;
|
||||
std::vector<DescriptorBinding> descriptors;
|
||||
|
||||
[[nodiscard]] uint32_t ShaderDataDwords() const {
|
||||
return buffer_offset_dword + (buffer_offset_count + 3u) / 4u;
|
||||
}
|
||||
|
||||
bool operator==(const BindingLayout& other) const = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user