[][src]Struct nobs_vulkanism_headless::cmd::commands::DrawIndirect

pub struct DrawIndirect {
    pub vertex_buffers: BindVertexBuffers,
    pub count: u32,
    pub offset: DeviceSize,
    pub stride: u32,
    pub buffer: Buffer,
    pub index_buffer: Option<Buffer>,
    pub index_offset: DeviceSize,
    pub index_type: IndexType,
}

Binds vertex buffers and issues an indirect draw call

Fields

vertex_buffers: BindVertexBufferscount: u32offset: DeviceSizestride: u32buffer: Bufferindex_buffer: Option<Buffer>index_offset: DeviceSizeindex_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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.