1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-26 22:16:28 -05:00

shader: Add support for forward declarations

This commit is contained in:
ReinUsesLisp
2021-02-14 22:46:40 -03:00
committed by ameerj
parent cbfb7d182a
commit 1b0cf2309c
11 changed files with 80 additions and 69 deletions

View File

@@ -161,8 +161,8 @@ std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias)
return std::nullopt;
}
const StorageBufferAddr storage_buffer{
.index = index.U32(),
.offset = offset.U32(),
.index{index.U32()},
.offset{offset.U32()},
};
if (bias && !MeetsBias(storage_buffer, *bias)) {
// We have to blacklist some addresses in case we wrongly point to them