Struct gfx::render::batch::OwnedBatch
[−]
[src]
pub struct OwnedBatch<T: ShaderParam> { pub slice: Slice<T>, pub param: T, pub state: DrawState, // some fields omitted }
Owned batch - self-contained, but has heap-allocated data
Fields
slice | Mesh slice |
param | Parameter data. |
state | Draw state |
Methods
impl<T: ShaderParam> OwnedBatch<T>
fn new(mesh: Mesh<T>, program: ProgramHandle<T>, param: T) -> Result<OwnedBatch<T>, Error>
Create a new owned batch