Better performance for shaders

This commit is contained in:
Yukino Song
2024-09-22 07:46:22 +08:00
parent 80fb7efc3d
commit 92f27fdc51

View File

@@ -25,7 +25,7 @@ vertex_t generate_fullscreen_triangle_vertex(uint vertex_id, float2 subsample_of
float2 rotation_center = { 0.5, 0.5 };
tex_coord = round(rotation_center + mul(rotation_matrix, tex_coord - rotation_center));
if (rotate_texture_steps % 2) {
if (rotate_texture_steps & 1) {
subsample_offset.xy = subsample_offset.yx;
}
}