#[repr(transparent)]pub struct SDL_GPUSamplerAddressMode(pub c_int);Expand description
Specifies behavior of texture sampling when the coordinates exceed the 0-1 range.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
REPEAT | SDL_GPU_SAMPLERADDRESSMODE_REPEAT | Specifies that the coordinates will wrap around. |
MIRRORED_REPEAT | SDL_GPU_SAMPLERADDRESSMODE_MIRRORED_REPEAT | Specifies that the coordinates will wrap around mirrored. |
CLAMP_TO_EDGE | SDL_GPU_SAMPLERADDRESSMODE_CLAMP_TO_EDGE | Specifies that the coordinates will clamp to the 0-1 range. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUSamplerAddressMode
impl SDL_GPUSamplerAddressMode
Sourcepub const MIRRORED_REPEAT: Self
pub const MIRRORED_REPEAT: Self
Specifies that the coordinates will wrap around mirrored.
Sourcepub const CLAMP_TO_EDGE: Self
pub const CLAMP_TO_EDGE: Self
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
Available on crate feature debug-impls only.
impl Debug for SDL_GPUSamplerAddressMode
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUSamplerAddressMode
impl Default for SDL_GPUSamplerAddressMode
Source§fn default() -> SDL_GPUSamplerAddressMode
fn default() -> SDL_GPUSamplerAddressMode
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUSamplerAddressMode> for c_int
impl From<SDL_GPUSamplerAddressMode> for c_int
Source§fn from(value: SDL_GPUSamplerAddressMode) -> Self
fn from(value: SDL_GPUSamplerAddressMode) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUSamplerAddressMode
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUSamplerAddressMode
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_GPUSamplerAddressMode
impl Hash for SDL_GPUSamplerAddressMode
Source§impl Ord for SDL_GPUSamplerAddressMode
impl Ord for SDL_GPUSamplerAddressMode
Source§fn cmp(&self, other: &SDL_GPUSamplerAddressMode) -> Ordering
fn cmp(&self, other: &SDL_GPUSamplerAddressMode) -> 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_GPUSamplerAddressMode> for c_int
impl PartialEq<SDL_GPUSamplerAddressMode> for c_int
Source§impl PartialEq<i32> for SDL_GPUSamplerAddressMode
impl PartialEq<i32> for SDL_GPUSamplerAddressMode
Source§impl PartialOrd for SDL_GPUSamplerAddressMode
impl PartialOrd 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 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