example: remove frame_ix double semicolon
This commit is contained in:
parent
39e97a3f1b
commit
a0d516803b
@ -312,7 +312,7 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
theta += (2.f * pi) / 720.f;
|
theta += (2.f * pi) / 720.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -288,6 +288,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -329,6 +329,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -206,6 +206,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
|
|
||||||
if (frame_ix == 10 && dumped == false) {
|
if (frame_ix == 10 && dumped == false) {
|
||||||
dump();
|
dump();
|
||||||
|
@ -322,6 +322,6 @@ void main()
|
|||||||
|
|
||||||
constexpr float half_degree = 0.01745329f / 2;
|
constexpr float half_degree = 0.01745329f / 2;
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -301,6 +301,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,6 +212,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -286,6 +286,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,6 +182,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,6 +229,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -263,6 +263,6 @@ void main()
|
|||||||
|
|
||||||
constexpr float half_degree = 0.01745329f / 2;
|
constexpr float half_degree = 0.01745329f / 2;
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -446,6 +446,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
|
|
||||||
if (frame_ix > 10)
|
if (frame_ix > 10)
|
||||||
break;
|
break;
|
||||||
|
@ -202,6 +202,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -175,6 +175,6 @@ void main()
|
|||||||
|
|
||||||
constexpr float half_degree = 0.01745329f / 2.f;
|
constexpr float half_degree = 0.01745329f / 2.f;
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,7 +212,7 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
delta += pi * 2 / 360;
|
delta += pi * 2 / 360;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -312,6 +312,6 @@ void main()
|
|||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
theta += half_degree;
|
theta += half_degree;
|
||||||
frame_ix = (frame_ix + 1) & 1;;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user