Update emit_spirv_context_get_set.cpp

This commit is contained in:
DanielSvoboda 2024-07-29 20:33:17 -03:00 committed by GitHub
parent 5c75da8abc
commit 1aed3d2feb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -433,8 +433,7 @@ static Id EmitLoadBufferFormatF64xN(EmitContext& ctx, IR::Inst* inst, u32 handle
} else {
boost::container::static_vector<Id, N> ids;
for (u32 i = 0; i < N; i++) {
const Id index_i =
ctx.OpIAdd(ctx.U32[1], address, ctx.ConstU32(i * 8));
const Id index_i = ctx.OpIAdd(ctx.U32[1], address, ctx.ConstU32(i * 8));
const Id ptr =
ctx.OpAccessChain(buffer.pointer_type, buffer.id, ctx.u32_zero_value, index_i);
ids.push_back(ctx.OpLoad(ctx.F64[1], ptr));