mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 21:35:46 +00:00
glsl: FP function fixes
This commit is contained in:
parent
30f47ec831
commit
d7656077bf
7 changed files with 25 additions and 17 deletions
|
@ -78,13 +78,12 @@ void EmitWriteStorageS16([[maybe_unused]] EmitContext& ctx,
|
|||
|
||||
void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset,
|
||||
std::string_view value) {
|
||||
ctx.Add("buff{}[{}]={};", binding.U32(), offset.U32(), value);
|
||||
ctx.Add("ssbo{}_u32[{}]={};", binding.U32(), offset.U32(), value);
|
||||
}
|
||||
|
||||
void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset,
|
||||
std::string_view value) {
|
||||
ctx.Add("buff{}[{}]={}.x;", binding.U32(), offset.U32(), value);
|
||||
ctx.Add("buff{}[{}]={}.y;", binding.U32(), offset.U32() + 1, value);
|
||||
ctx.Add("ssbo{}_u64[{}]={};", binding.U32(), offset.U32(), value);
|
||||
}
|
||||
|
||||
void EmitWriteStorage128([[maybe_unused]] EmitContext& ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue