[−][src]Struct nobs_vulkanism_headless::cmd::commands::DrawIndirect
Binds vertex buffers and issues an indirect draw call
Fields
vertex_buffers: BindVertexBuffers
count: u32
offset: DeviceSize
stride: u32
buffer: Buffer
index_buffer: Option<Buffer>
index_offset: DeviceSize
index_type: IndexType
Methods
impl DrawIndirect
[src]
pub fn new(vertex_buffers: BindVertexBuffers, buffer: Buffer) -> Self
[src]
Creates a new builder for indirect drawing
Default initializes:
count = 0
offset = 0
stride = sizeof(vk::DrawIndirectCommand)
index_buffer = None
pub fn indexed(
self,
index_buffer: Buffer,
index_offset: DeviceSize,
index_type: IndexType
) -> Self
[src]
self,
index_buffer: Buffer,
index_offset: DeviceSize,
index_type: IndexType
) -> Self
Set the builder for indexed indirect drawing
Also sets the stride
to teh required sizeof(vk::DrawIndexedIndirectCommand)
pub fn count(self, count: u32) -> Self
[src]
pub fn offset(self, offset: DeviceSize) -> Self
[src]
Trait Implementations
impl StreamPush for DrawIndirect
[src]
impl Default for DrawIndirect
[src]
fn default() -> DrawIndirect
[src]
Auto Trait Implementations
impl Send for DrawIndirect
impl Sync for DrawIndirect
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>,