#[repr(C)]
pub struct VertexLayoutBuilder { pub hash: u32, pub stride: u16, pub offset: [u16; 18], pub attributes: [u16; 18], }
Expand description

Vertex layout.

Fields

hash: u32

Hash.

stride: u16

Stride.

offset: [u16; 18]

Attribute offsets.

attributes: [u16; 18]

Used attributes.

Implementations

  • renderer_type: Renderer backend type. See: bgfx::RendererType
  • attrib: Attribute semantics. See: bgfx::Attrib
  • num: Number of elements 1, 2, 3 or 4.
  • type_r: Element type.
  • normalized: When using fixed point AttribType (f.e. Uint8) value will be normalized for vertex shader usage. When normalized is set to true, AttribType::Uint8 value in range 0-255 will be in range 0.0-1.0 in vertex shader.
  • as_int: Packaging rule for vertexPack, vertexUnpack, and vertexConvert for AttribType::Uint8 and AttribType::Int16. Unpacking code must be implemented inside vertex shader.
  • attrib: Attribute semantics. See: bgfx::Attrib
  • num: Number of bytes to skip.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.