Enum rokol::gfx::VertexFormat [−][src]
#[repr(u32)]
pub enum VertexFormat {
Show 18 variants
Inalid,
Float,
Float2,
Float3,
Float4,
Byte4,
Byte4N,
UByte4,
UByte4N,
Short2,
Short2N,
UShort2N,
Short4,
Short4N,
UShort4N,
Uint10N2,
_Num,
_ForceU32,
}
Expand description
Data type of a vertex component
Used to describe the layout of vertex data when creating a pipeline object.
Portability of integer values
Only normalized integer formats (*N
) is portable across all platforms.
The reason is that D3D11 cannot convert from non-normalized formats to floating point inputs (only to integer inputs), and WebGL2 / GLES2 don’t support integer vertex shader inputs.
Variants
Inalid
Float
Float2
Float3
Float4
Byte4
Byte4N
UByte4
UByte4N
Short2
Short2N
UShort2N
Short4
Short4N
UShort4N
Uint10N2
_Num
_ForceU32
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VertexFormat
impl Send for VertexFormat
impl Sync for VertexFormat
impl Unpin for VertexFormat
impl UnwindSafe for VertexFormat
Blanket Implementations
Mutably borrows from an owned value. Read more