#[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.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_GPUVertexBufferDescription See Also: SDL_GPUVertexInputState See Also: SDL_GPUVertexElementFormat
Fields§
§location: Uint32< The shader input location index.
buffer_slot: Uint32< The binding slot of the associated vertex buffer.
format: SDL_GPUVertexElementFormat< The size and type of the attribute data.
offset: Uint32< The 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§impl Hash for SDL_GPUVertexAttribute
impl Hash for SDL_GPUVertexAttribute
impl Copy 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 UnsafeUnpin 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