mirror of
https://github.com/libretro/RetroArch
synced 2025-02-14 06:40:48 +00:00
Optimize vulkan_write_quad_vbo
This commit is contained in:
parent
4fb388ca4d
commit
6136035f2e
@ -598,10 +598,12 @@ static INLINE void vulkan_write_quad_vbo(struct vk_vertex *pv,
|
|||||||
|
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
pv[i].x = x + strip[2 * i + 0] * width;
|
float strip1 = strip[2 * i + 0];
|
||||||
pv[i].y = y + strip[2 * i + 1] * height;
|
float strip2 = strip[2 * i + 1];
|
||||||
pv[i].tex_x = tex_x + strip[2 * i + 0] * tex_width;
|
pv[i].x = x + strip1 * width;
|
||||||
pv[i].tex_y = tex_y + strip[2 * i + 1] * tex_height;
|
pv[i].y = y + strip2 * height;
|
||||||
|
pv[i].tex_x = tex_x + strip1 * tex_width;
|
||||||
|
pv[i].tex_y = tex_y + strip2 * tex_height;
|
||||||
pv[i].color = *color;
|
pv[i].color = *color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user