taichi.ui.staging_buffer

Module Contents

Functions

get_vbo_field(vertices)

copy_to_vbo(vbo: template(), src: template(), offset: template(), num_components: template())

fill_vbo(vbo: template(), value: template(), offset: template(), num_components: template())

validate_input_field(f, name)

copy_vertices_to_vbo(vbo, vertices)

copy_normals_to_vbo(vbo, normals)

copy_texcoords_to_vbo(vbo, texcoords)

copy_colors_to_vbo(vbo, colors)

copy_image_f32_to_u8(src: ti.template(), dst: ti.template(), num_components: ti.template())

copy_image_u8_to_u8(src: ti.template(), dst: ti.template(), num_components: ti.template())

to_u8_rgba(image)

Attributes

vbo_field_cache

image_field_cache

taichi.ui.staging_buffer.vbo_field_cache
taichi.ui.staging_buffer.get_vbo_field(vertices)
taichi.ui.staging_buffer.copy_to_vbo(vbo: template(), src: template(), offset: template(), num_components: template())
taichi.ui.staging_buffer.fill_vbo(vbo: template(), value: template(), offset: template(), num_components: template())
taichi.ui.staging_buffer.validate_input_field(f, name)
taichi.ui.staging_buffer.copy_vertices_to_vbo(vbo, vertices)
taichi.ui.staging_buffer.copy_normals_to_vbo(vbo, normals)
taichi.ui.staging_buffer.copy_texcoords_to_vbo(vbo, texcoords)
taichi.ui.staging_buffer.copy_colors_to_vbo(vbo, colors)
taichi.ui.staging_buffer.copy_image_f32_to_u8(src: ti.template(), dst: ti.template(), num_components: ti.template())
taichi.ui.staging_buffer.copy_image_u8_to_u8(src: ti.template(), dst: ti.template(), num_components: ti.template())
taichi.ui.staging_buffer.image_field_cache
taichi.ui.staging_buffer.to_u8_rgba(image)