#[repr(transparent)]pub struct SDL_GPUVertexElementFormat(pub c_int);Expand description
Specifies the format of a vertex attribute.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUVertexElementFormat
impl SDL_GPUVertexElementFormat
pub const INVALID: Self
pub const INT: Self
pub const INT2: Self
pub const INT3: Self
pub const INT4: Self
pub const UINT: Self
pub const UINT2: Self
pub const UINT3: Self
pub const UINT4: Self
pub const FLOAT: Self
pub const FLOAT2: Self
pub const FLOAT3: Self
pub const FLOAT4: Self
pub const BYTE2: Self
pub const BYTE4: Self
pub const UBYTE2: Self
pub const UBYTE4: Self
pub const BYTE2_NORM: Self
pub const BYTE4_NORM: Self
pub const UBYTE2_NORM: Self
pub const UBYTE4_NORM: Self
pub const SHORT2: Self
pub const SHORT4: Self
pub const USHORT2: Self
pub const USHORT4: Self
pub const SHORT2_NORM: Self
pub const SHORT4_NORM: Self
pub const USHORT2_NORM: Self
pub const USHORT4_NORM: Self
pub const HALF2: Self
pub const HALF4: Self
Trait Implementations§
Source§impl Clone for SDL_GPUVertexElementFormat
impl Clone for SDL_GPUVertexElementFormat
Source§fn clone(&self) -> SDL_GPUVertexElementFormat
fn clone(&self) -> SDL_GPUVertexElementFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_GPUVertexElementFormat
Available on crate feature debug-impls only.
impl Debug for SDL_GPUVertexElementFormat
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUVertexElementFormat
impl Default for SDL_GPUVertexElementFormat
Source§fn default() -> SDL_GPUVertexElementFormat
fn default() -> SDL_GPUVertexElementFormat
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUVertexElementFormat> for c_int
impl From<SDL_GPUVertexElementFormat> for c_int
Source§fn from(value: SDL_GPUVertexElementFormat) -> Self
fn from(value: SDL_GPUVertexElementFormat) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUVertexElementFormat
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUVertexElementFormat
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_GPUVertexElementFormat
impl Hash for SDL_GPUVertexElementFormat
Source§impl Ord for SDL_GPUVertexElementFormat
impl Ord for SDL_GPUVertexElementFormat
Source§fn cmp(&self, other: &SDL_GPUVertexElementFormat) -> Ordering
fn cmp(&self, other: &SDL_GPUVertexElementFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_GPUVertexElementFormat> for c_int
impl PartialEq<SDL_GPUVertexElementFormat> for c_int
Source§impl PartialEq<i32> for SDL_GPUVertexElementFormat
impl PartialEq<i32> for SDL_GPUVertexElementFormat
Source§impl PartialOrd for SDL_GPUVertexElementFormat
impl PartialOrd for SDL_GPUVertexElementFormat
impl Copy for SDL_GPUVertexElementFormat
impl Eq for SDL_GPUVertexElementFormat
impl StructuralPartialEq for SDL_GPUVertexElementFormat
Auto Trait Implementations§
impl Freeze for SDL_GPUVertexElementFormat
impl RefUnwindSafe for SDL_GPUVertexElementFormat
impl Send for SDL_GPUVertexElementFormat
impl Sync for SDL_GPUVertexElementFormat
impl Unpin for SDL_GPUVertexElementFormat
impl UnwindSafe for SDL_GPUVertexElementFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more