Skip to content

Commit

Permalink
metal is a pain
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jun 27, 2024
1 parent 651b7b2 commit 350a906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/Metal/convert.metal
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ struct ConvertToDepthRes
fragment DepthOut ps_convert_float32_float24(ConvertShaderData data [[stage_in]], ConvertToDepthRes res)
{
// Truncates depth value to 24bits
uint d = uint(res.sample(data.t) * 0x1p32f) & 0xFFFFFF;
uint d = uint(0x1p32 * res.sample(data.t)) & 0xFFFFFF;
return float(d) * 0x1p-32f;
}

Expand Down

0 comments on commit 350a906

Please sign in to comment.