#[repr(transparent)]pub struct SDL_GPUSampleCount(pub c_int);Expand description
Specifies the sample count of a texture.
Used in multisampling. Note that this value only applies when the texture is used as a render target.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
_1 | SDL_GPU_SAMPLECOUNT_1 | No multisampling. |
_2 | SDL_GPU_SAMPLECOUNT_2 | MSAA 2x |
_4 | SDL_GPU_SAMPLECOUNT_4 | MSAA 4x |
_8 | SDL_GPU_SAMPLECOUNT_8 | MSAA 8x |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_GPUSampleCount
impl Clone for SDL_GPUSampleCount
Source§fn clone(&self) -> SDL_GPUSampleCount
fn clone(&self) -> SDL_GPUSampleCount
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_GPUSampleCount
Available on crate feature debug-impls only.
impl Debug for SDL_GPUSampleCount
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUSampleCount
impl Default for SDL_GPUSampleCount
Source§fn default() -> SDL_GPUSampleCount
fn default() -> SDL_GPUSampleCount
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUSampleCount> for c_int
impl From<SDL_GPUSampleCount> for c_int
Source§fn from(value: SDL_GPUSampleCount) -> Self
fn from(value: SDL_GPUSampleCount) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUSampleCount
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUSampleCount
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_GPUSampleCount
impl Hash for SDL_GPUSampleCount
Source§impl Ord for SDL_GPUSampleCount
impl Ord for SDL_GPUSampleCount
Source§fn cmp(&self, other: &SDL_GPUSampleCount) -> Ordering
fn cmp(&self, other: &SDL_GPUSampleCount) -> 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_GPUSampleCount> for c_int
impl PartialEq<SDL_GPUSampleCount> for c_int
Source§impl PartialEq<i32> for SDL_GPUSampleCount
impl PartialEq<i32> for SDL_GPUSampleCount
Source§impl PartialEq for SDL_GPUSampleCount
impl PartialEq for SDL_GPUSampleCount
Source§impl PartialOrd for SDL_GPUSampleCount
impl PartialOrd for SDL_GPUSampleCount
impl Copy for SDL_GPUSampleCount
impl Eq for SDL_GPUSampleCount
impl StructuralPartialEq for SDL_GPUSampleCount
Auto Trait Implementations§
impl Freeze for SDL_GPUSampleCount
impl RefUnwindSafe for SDL_GPUSampleCount
impl Send for SDL_GPUSampleCount
impl Sync for SDL_GPUSampleCount
impl Unpin for SDL_GPUSampleCount
impl UnwindSafe for SDL_GPUSampleCount
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