#[repr(transparent)]pub struct SDL_GPUTextureType(pub c_int);Expand description
Specifies the type of a texture.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
_2D | SDL_GPU_TEXTURETYPE_2D | The texture is a 2-dimensional image. |
_2D_ARRAY | SDL_GPU_TEXTURETYPE_2D_ARRAY | The texture is a 2-dimensional array image. |
_3D | SDL_GPU_TEXTURETYPE_3D | The texture is a 3-dimensional image. |
CUBE | SDL_GPU_TEXTURETYPE_CUBE | The texture is a cube image. |
CUBE_ARRAY | SDL_GPU_TEXTURETYPE_CUBE_ARRAY | The texture is a cube array image. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUTextureType
impl SDL_GPUTextureType
Sourcepub const CUBE_ARRAY: Self
pub const CUBE_ARRAY: Self
The texture is a cube array image.
Trait Implementations§
Source§impl Clone for SDL_GPUTextureType
impl Clone for SDL_GPUTextureType
Source§fn clone(&self) -> SDL_GPUTextureType
fn clone(&self) -> SDL_GPUTextureType
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_GPUTextureType
Available on crate feature debug-impls only.
impl Debug for SDL_GPUTextureType
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUTextureType
impl Default for SDL_GPUTextureType
Source§fn default() -> SDL_GPUTextureType
fn default() -> SDL_GPUTextureType
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUTextureType> for c_int
impl From<SDL_GPUTextureType> for c_int
Source§fn from(value: SDL_GPUTextureType) -> Self
fn from(value: SDL_GPUTextureType) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUTextureType
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUTextureType
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_GPUTextureType
impl Hash for SDL_GPUTextureType
Source§impl Ord for SDL_GPUTextureType
impl Ord for SDL_GPUTextureType
Source§fn cmp(&self, other: &SDL_GPUTextureType) -> Ordering
fn cmp(&self, other: &SDL_GPUTextureType) -> 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_GPUTextureType> for c_int
impl PartialEq<SDL_GPUTextureType> for c_int
Source§impl PartialEq<i32> for SDL_GPUTextureType
impl PartialEq<i32> for SDL_GPUTextureType
Source§impl PartialEq for SDL_GPUTextureType
impl PartialEq for SDL_GPUTextureType
Source§impl PartialOrd for SDL_GPUTextureType
impl PartialOrd for SDL_GPUTextureType
impl Copy for SDL_GPUTextureType
impl Eq for SDL_GPUTextureType
impl StructuralPartialEq for SDL_GPUTextureType
Auto Trait Implementations§
impl Freeze for SDL_GPUTextureType
impl RefUnwindSafe for SDL_GPUTextureType
impl Send for SDL_GPUTextureType
impl Sync for SDL_GPUTextureType
impl Unpin for SDL_GPUTextureType
impl UnwindSafe for SDL_GPUTextureType
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