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

pub struct DrawIndexed {
    pub vertex_buffers: BindVertexBuffers,
    pub index_count: u32,
    pub instance_count: u32,
    pub first_index: u32,
    pub vertex_offset: i32,
    pub first_instance: u32,
    pub index_buffer: Buffer,
    pub index_buffer_offset: DeviceSize,
    pub index_type: IndexType,
}

Bind vertex buffers and issues an indexed draw call

Fields

vertex_buffers: BindVertexBuffersindex_count: u32instance_count: u32first_index: u32vertex_offset: i32first_instance: u32index_buffer: Bufferindex_buffer_offset: DeviceSizeindex_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]

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]

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.