pub struct Draw<'a, P> where
P: SharedPointerKind, { /* private fields */ }Implementations
sourceimpl<'a, P> Draw<'a, P> where
P: SharedPointerKind,
impl<'a, P> Draw<'a, P> where
P: SharedPointerKind,
pub fn bind_index_buffer(
&self,
buffer: impl Into<AnyBufferNode<P>>,
index_ty: IndexType
) -> &Self
pub fn bind_index_buffer_offset(
&self,
buffer: impl Into<AnyBufferNode<P>>,
index_ty: IndexType,
offset: DeviceSize
) -> &Self
pub fn bind_vertex_buffer(&self, buffer: impl Into<AnyBufferNode<P>>) -> &Self
pub fn bind_vertex_buffer_offset(
&self,
buffer: impl Into<AnyBufferNode<P>>,
offset: DeviceSize
) -> &Self
pub fn bind_vertex_buffers<B>(
&self,
first_binding: u32,
buffers: impl IntoIterator<Item = (B, DeviceSize)>
) -> &Self where
B: Into<AnyBufferNode<P>>,
pub fn draw(
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32
) -> &Self
pub fn draw_indexed(
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
vertex_offset: i32,
first_instance: u32
) -> &Self
pub fn draw_indexed_indirect(
&self,
buffer: impl Into<AnyBufferNode<P>>,
offset: DeviceSize,
draw_count: u32,
stride: u32
) -> &Self
pub fn draw_indexed_indirect_count(
&self,
buffer: impl Into<AnyBufferNode<P>>,
offset: DeviceSize,
count_buf: impl Into<AnyBufferNode<P>>,
count_buf_offset: DeviceSize,
max_draw_count: u32,
stride: u32
) -> &Self
pub fn draw_indirect(
&self,
buffer: impl Into<AnyBufferNode<P>>,
offset: DeviceSize,
draw_count: u32,
stride: u32
) -> &Self
pub fn draw_indirect_count(
&self,
buffer: impl Into<AnyBufferNode<P>>,
offset: DeviceSize,
count_buf: impl Into<AnyBufferNode<P>>,
count_buf_offset: DeviceSize,
max_draw_count: u32,
stride: u32
) -> &Self
pub fn push_constants(&self, data: &[u8]) -> &Self
pub fn push_constants_offset(&self, offset: u32, data: &[u8]) -> &Self
pub fn set_scissor(&self, x: i32, y: i32, width: u32, height: u32) -> &Self
pub fn set_scissors<S>(
&self,
first_scissor: u32,
scissors: impl IntoIterator<Item = S>
) -> &Self where
S: Into<Rect2D>,
pub fn set_viewport(
&self,
x: f32,
y: f32,
width: f32,
height: f32,
depth: Range<f32>
) -> &Self
pub fn set_viewports<V>(
&self,
first_viewport: u32,
viewports: impl IntoIterator<Item = V>
) -> &Self where
V: Into<Viewport>,
Auto Trait Implementations
impl<'a, P> !RefUnwindSafe for Draw<'a, P>
impl<'a, P> !Send for Draw<'a, P>
impl<'a, P> !Sync for Draw<'a, P>
impl<'a, P> Unpin for Draw<'a, P> where
P: Unpin,
impl<'a, P> !UnwindSafe for Draw<'a, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more