pub struct DrawArgs {Show 14 fields
pub surface: Surface,
pub viewport: Rect<i32>,
pub scissor: Option<Rect<i32>>,
pub blend_mode: BlendMode,
pub depth_test: Option<DepthTest>,
pub cull_mode: Option<CullMode>,
pub prim_type: PrimType,
pub shader: Shader,
pub vertices: VertexBuffer,
pub uniforms: UniformBuffer,
pub vertex_start: u32,
pub vertex_end: u32,
pub uniform_index: u32,
pub instances: i32,
}Expand description
Arguments for draw.
Fields§
§surface: SurfaceSurface to draw on.
viewport: Rect<i32>Viewport rectangle.
scissor: Option<Rect<i32>>Scissor rectangle.
blend_mode: BlendModeBlend mode.
depth_test: Option<DepthTest>Depth test.
cull_mode: Option<CullMode>Triangle culling mode.
prim_type: PrimTypePrimitive type.
shader: ShaderShader used.
vertices: VertexBufferVertex buffer.
uniforms: UniformBufferUniforms.
vertex_start: u32Index of the first vertex.
vertex_end: u32Index of one past the last vertex.
uniform_index: u32Index of the uniform to use.
instances: i32Number of instances to draw.
If this is less than zero, instanced drawing is disabled.
Auto Trait Implementations§
impl Freeze for DrawArgs
impl RefUnwindSafe for DrawArgs
impl Send for DrawArgs
impl Sync for DrawArgs
impl Unpin for DrawArgs
impl UnwindSafe for DrawArgs
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