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

pub struct DrawVertices {
    pub vertex_buffers: BindVertexBuffers,
    pub vertex_count: u32,
    pub instance_count: u32,
    pub first_vertex: u32,
    pub first_instance: u32,
}

Binds vertex buffers and issues draw call

Fields

vertex_buffers: BindVertexBuffersvertex_count: u32instance_count: u32first_vertex: u32first_instance: u32

Methods

impl DrawVertices[src]

pub fn new(vertex_buffers: BindVertexBuffers) -> Self[src]

Creates a new builder for normal drawing

Default initializes:

  • index_count = 0
  • instance_count = 1
  • first_index = 0
  • first_instance = 0

pub fn first_vertex(self, first: u32) -> Self[src]

pub fn vertex_count(self, count: u32) -> Self[src]

pub fn vertices(self, first: u32, count: u32) -> 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]

Trait Implementations

impl StreamPush for DrawVertices[src]

impl Default for DrawVertices[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.