yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

shader: Fix TextureGrad

This commit is contained in:
ReinUsesLisp 2021-04-06 05:52:41 -03:00 committed by ameerj
parent 1f3eb601ac
commit ef88552224
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public:
} }
boost::container::static_vector<Id, 3> deriv_x_accum; boost::container::static_vector<Id, 3> deriv_x_accum;
boost::container::static_vector<Id, 3> deriv_y_accum; boost::container::static_vector<Id, 3> deriv_y_accum;
for (size_t i = 0; i < num_derivates; i++) { for (u32 i = 0; i < num_derivates; ++i) {
deriv_x_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2)); deriv_x_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2));
deriv_y_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2 + 1)); deriv_y_accum.push_back(ctx.OpCompositeExtract(ctx.F32[1], derivates, i * 2 + 1));
} }