#[repr(transparent)]pub struct SDL_GPUSamplerAddressMode(pub c_uint);Expand description
Specifies behavior of texture sampling when the coordinates exceed the 0-1 range.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_CreateGPUSampler
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_GPUSamplerAddressMode
impl SDL_GPUSamplerAddressMode
Sourcepub const SDL_GPU_SAMPLERADDRESSMODE_REPEAT: SDL_GPUSamplerAddressMode
pub const SDL_GPU_SAMPLERADDRESSMODE_REPEAT: SDL_GPUSamplerAddressMode
< Specifies that the coordinates will wrap around.
Sourcepub const SDL_GPU_SAMPLERADDRESSMODE_MIRRORED_REPEAT: SDL_GPUSamplerAddressMode
pub const SDL_GPU_SAMPLERADDRESSMODE_MIRRORED_REPEAT: SDL_GPUSamplerAddressMode
< Specifies that the coordinates will wrap around mirrored.
Sourcepub const SDL_GPU_SAMPLERADDRESSMODE_CLAMP_TO_EDGE: SDL_GPUSamplerAddressMode
pub const SDL_GPU_SAMPLERADDRESSMODE_CLAMP_TO_EDGE: SDL_GPUSamplerAddressMode
< Specifies that the coordinates will clamp to the 0-1 range.
Trait Implementations§
Source§impl Clone for SDL_GPUSamplerAddressMode
impl Clone for SDL_GPUSamplerAddressMode
Source§fn clone(&self) -> SDL_GPUSamplerAddressMode
fn clone(&self) -> SDL_GPUSamplerAddressMode
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_GPUSamplerAddressMode
impl Debug for SDL_GPUSamplerAddressMode
Source§impl Hash for SDL_GPUSamplerAddressMode
impl Hash for SDL_GPUSamplerAddressMode
impl Copy for SDL_GPUSamplerAddressMode
impl Eq for SDL_GPUSamplerAddressMode
impl StructuralPartialEq for SDL_GPUSamplerAddressMode
Auto Trait Implementations§
impl Freeze for SDL_GPUSamplerAddressMode
impl RefUnwindSafe for SDL_GPUSamplerAddressMode
impl Send for SDL_GPUSamplerAddressMode
impl Sync for SDL_GPUSamplerAddressMode
impl Unpin for SDL_GPUSamplerAddressMode
impl UnsafeUnpin for SDL_GPUSamplerAddressMode
impl UnwindSafe for SDL_GPUSamplerAddressMode
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