[][src]Trait web_glitz::pipeline::graphics::IndexBuffer

pub unsafe trait IndexBuffer {
    fn encode<'a>(
        &self,
        context: &'a mut IndexBufferEncodingContext
    ) -> IndexBufferEncoding<'a>; }

Describes a data source that can be used to provide indexing data to a draw command.

See [ActiveGraphicsPipeline::bind_index_buffer] for details.

Required methods

fn encode<'a>(
    &self,
    context: &'a mut IndexBufferEncodingContext
) -> IndexBufferEncoding<'a>

Encodes a description of the index buffer.

Loading content...

Implementors

impl<'a, F> IndexBuffer for &'a Buffer<[F]> where
    F: IndexFormat
[src]

impl<'a, F> IndexBuffer for BufferView<'a, [F]> where
    F: IndexFormat
[src]

Loading content...