shader: separate exact descriptor row bounds from pointer offsets

This commit is contained in:
nmzik
2026-10-14 16:55:47 +02:00
parent 487bbf95fd
commit 04cb4c6553
4 changed files with 15 additions and 19 deletions
+2 -7
View File
@@ -525,12 +525,6 @@ struct ShaderInfo {
struct DescriptorSource {
struct IndirectDescriptor {
struct PointerTable {
uint32_t maximum = 0;
uint32_t offset = 0;
bool operator==(const PointerTable&) const = default;
};
struct SelectorRead {
struct CountedRows {
uint32_t source = UINT32_MAX;
@@ -553,7 +547,8 @@ struct DescriptorSource {
bool operator==(const SelectorRead& other) const = default;
};
std::optional<SelectorRead> selector;
std::optional<PointerTable> pointer_table;
std::optional<uint32_t> table_maximum;
std::optional<uint32_t> pointer_offset;
uint32_t table_source = 0;
uint32_t table_offset = 0;
uint32_t table_immediate = 0;