[−][src]Struct nobs_vulkanism_headless::cmd::commands::DrawIndexed
Bind vertex buffers and issues an indexed draw call
Fields
vertex_buffers: BindVertexBuffers
index_count: u32
instance_count: u32
first_index: u32
vertex_offset: i32
first_instance: u32
index_buffer: Buffer
index_buffer_offset: DeviceSize
index_type: IndexType
Methods
impl DrawIndexed
[src]
pub fn new(vertex_buffers: BindVertexBuffers, index_buffer: Buffer) -> Self
[src]
Creates a new builder for indexed drawing
Default initializes:
index_count = 0
instance_count = 1
first_index = 0
vertex_offset = 0
first_instance = 0
index_buffer_offeset = 0
index_type = vk::INDEX_TYPE_UINT16
pub fn first_index(self, first: u32) -> Self
[src]
pub fn index_count(self, count: u32) -> Self
[src]
pub fn indices(self, first: u32, count: u32) -> Self
[src]
pub fn vertex_offset(self, offset: i32) -> Self
[src]
pub fn first_instance(self, first: u32) -> Self
[src]
pub fn instance_count(self, count: u32) -> Self
[src]
pub fn instances(self, first: u32, count: u32) -> Self
[src]
pub fn buffer_offset(self, offset: DeviceSize) -> Self
[src]
pub fn index_type(self, ty: IndexType) -> Self
[src]
Trait Implementations
impl StreamPush for DrawIndexed
[src]
impl Default for DrawIndexed
[src]
fn default() -> DrawIndexed
[src]
Auto Trait Implementations
impl Send for DrawIndexed
impl Sync for DrawIndexed
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,