glsl: FP function fixes
This commit is contained in:
parent
65c6f73e43
commit
3064bde415
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