shader/memory: Implement ATOMS.ADD.U32

This commit is contained in:
ReinUsesLisp 2020-01-16 04:00:52 -03:00
parent 30faf6a964
commit 63ba41a26d
5 changed files with 74 additions and 3 deletions

View file

@ -1796,6 +1796,11 @@ private:
return {};
}
Expression UAtomicAdd(Operation) {
UNIMPLEMENTED();
return {};
}
Expression Branch(Operation operation) {
const auto& target = std::get<ImmediateNode>(*operation[0]);
OpStore(jmp_to, Constant(t_uint, target.GetValue()));
@ -2373,6 +2378,8 @@ private:
&SPIRVDecompiler::AtomicImageXor,
&SPIRVDecompiler::AtomicImageExchange,
&SPIRVDecompiler::UAtomicAdd,
&SPIRVDecompiler::Branch,
&SPIRVDecompiler::BranchIndirect,
&SPIRVDecompiler::PushFlowStack,