Skip to main content

atlas_blit_vertex

Function atlas_blit_vertex 

Source
pub fn atlas_blit_vertex(
    vertex_id: u32,
    atlas_blitting_desc_id: Id<AtlasBlittingDescriptor>,
    slab: &[u32],
    out_uv: &mut Vec2,
    out_pos: &mut Vec4,
)
Expand description

Vertex shader for blitting a texture into a the frame of an AtlasTextureDescriptor.

This is useful for copying textures of unsupported formats, or textures of different sizes.