Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 25, 2023
1 parent 1d55410 commit acae144
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions python/taichi/ui/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from taichi.lang import impl
from taichi.lang._texture import Texture

from .staging_buffer import copy_all_to_vbo
from .staging_buffer import get_vbo_field
from .staging_buffer import to_rgba8
from .staging_buffer import copy_all_to_vbo, get_vbo_field, to_rgba8
from .utils import get_field_info


Expand Down
3 changes: 1 addition & 2 deletions python/taichi/ui/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from taichi.types.annotations import template
from taichi.types.primitive_types import f32

from .staging_buffer import copy_all_to_vbo
from .staging_buffer import get_vbo_field
from .staging_buffer import copy_all_to_vbo, get_vbo_field
from .utils import check_ggui_availability, get_field_info

normals_field_cache = {}
Expand Down
5 changes: 2 additions & 3 deletions python/taichi/ui/staging_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def get_depth_ndarray(window):


@kernel
def copy_all_to_vbo(vbo: ti.template(), vertex: template(),
normal: template(), texcoords: template(),
color: template()):
def copy_all_to_vbo(vbo: ti.template(), vertex: template(), normal: template(),
texcoords: template(), color: template()):
for i in vertex:
if ti.static(vertex.n == 3):
vbo[i][0:3] = vertex[i]
Expand Down

0 comments on commit acae144

Please sign in to comment.