1 | #pragma once |
---|---|
2 | |
3 | #include "taichi/ui/backends/vulkan/vertex.h" |
4 | #include "taichi/program/field_info.h" |
5 | #include "taichi/ui/utils/utils.h" |
6 | |
7 | namespace taichi::ui { |
8 | |
9 | struct RenderableInfo { |
10 | FieldInfo vbo; |
11 | FieldInfo indices; |
12 | bool has_per_vertex_color{false}; |
13 | VertexAttributes vbo_attrs{VboHelpers::all()}; |
14 | bool has_user_customized_draw{false}; |
15 | int draw_vertex_count{0}; |
16 | int draw_first_vertex{0}; |
17 | int draw_index_count{0}; |
18 | int draw_first_index{0}; |
19 | taichi::lang::PolygonMode display_mode{taichi::lang::PolygonMode::Fill}; |
20 | }; |
21 | |
22 | } // namespace taichi::ui |
23 |