#[repr(C)]pub struct SDL_GPUVertexAttribute {
pub location: Uint32,
pub buffer_slot: Uint32,
pub format: SDL_GPUVertexElementFormat,
pub offset: Uint32,
}Expand description
A structure specifying a vertex attribute.
All vertex attribute locations provided to an SDL_GPUVertexInputState must
be unique.
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§location: Uint32The shader input location index.
buffer_slot: Uint32The binding slot of the associated vertex buffer.
format: SDL_GPUVertexElementFormatThe size and type of the attribute data.
offset: Uint32The byte offset of this attribute relative to the start of the vertex element.
Trait Implementations§
Source§impl Clone for SDL_GPUVertexAttribute
impl Clone for SDL_GPUVertexAttribute
Source§fn clone(&self) -> SDL_GPUVertexAttribute
fn clone(&self) -> SDL_GPUVertexAttribute
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_GPUVertexAttribute
impl Debug for SDL_GPUVertexAttribute
Source§impl Default for SDL_GPUVertexAttribute
impl Default for SDL_GPUVertexAttribute
Source§fn default() -> SDL_GPUVertexAttribute
fn default() -> SDL_GPUVertexAttribute
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_GPUVertexAttribute
impl Hash for SDL_GPUVertexAttribute
Source§impl PartialEq for SDL_GPUVertexAttribute
impl PartialEq for SDL_GPUVertexAttribute
impl Copy for SDL_GPUVertexAttribute
impl Eq for SDL_GPUVertexAttribute
impl StructuralPartialEq for SDL_GPUVertexAttribute
Auto Trait Implementations§
impl Freeze for SDL_GPUVertexAttribute
impl RefUnwindSafe for SDL_GPUVertexAttribute
impl Send for SDL_GPUVertexAttribute
impl Sync for SDL_GPUVertexAttribute
impl Unpin for SDL_GPUVertexAttribute
impl UnwindSafe for SDL_GPUVertexAttribute
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