pub struct DrawIndexedArgs<'a> {Show 15 fields
pub surface: Surface,
pub viewport: Bounds2<i32>,
pub scissor: Option<Bounds2<i32>>,
pub blend_mode: BlendMode,
pub depth_test: Option<DepthTest>,
pub cull_mode: Option<CullMode>,
pub mask: DrawMask,
pub prim_type: PrimType,
pub shader: Shader,
pub uniforms: &'a [&'a dyn UniformVisitor],
pub vertices: &'a [DrawVertexBuffer],
pub indices: IndexBuffer,
pub index_start: u32,
pub index_end: u32,
pub instances: i32,
}Expand description
Arguments for draw_indexed.
Fields§
§surface: SurfaceSurface to draw on.
viewport: Bounds2<i32>Viewport rectangle.
scissor: Option<Bounds2<i32>>Scissor rectangle.
blend_mode: BlendModeBlend mode.
depth_test: Option<DepthTest>Depth test.
cull_mode: Option<CullMode>Triangle culling mode.
mask: DrawMaskDraw mask.
prim_type: PrimTypePrimitive type.
shader: ShaderShader used.
uniforms: &'a [&'a dyn UniformVisitor]Uniforms.
vertices: &'a [DrawVertexBuffer]Vertices.
indices: IndexBufferIndices.
index_start: u32Index of the first index.
index_end: u32Index of one past the last index.
instances: i32Number of instances to draw.
If this is less than zero, instanced drawing is disabled.
Auto Trait Implementations§
impl<'a> Freeze for DrawIndexedArgs<'a>
impl<'a> !RefUnwindSafe for DrawIndexedArgs<'a>
impl<'a> !Send for DrawIndexedArgs<'a>
impl<'a> !Sync for DrawIndexedArgs<'a>
impl<'a> Unpin for DrawIndexedArgs<'a>
impl<'a> !UnwindSafe for DrawIndexedArgs<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more