glsl: Fix atomic SSBO offsets

and implement misc getters
This commit is contained in:
ameerj 2021-05-31 14:17:00 -04:00
parent 19247ba4fa
commit 68d075d1e8
4 changed files with 74 additions and 67 deletions

View file

@ -38,7 +38,7 @@ std::string GetMaxThreadId(std::string_view thread_id, std::string_view clamp,
} // namespace
void EmitLaneId([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst) {
NotImplemented();
ctx.AddU32("{}=gl_SubGroupInvocationARB&31u;", inst);
}
void EmitVoteAll(EmitContext& ctx, IR::Inst& inst, std::string_view pred) {