#[repr(C)]pub struct SDL_GPUTextureCreateInfo {
pub type: SDL_GPUTextureType,
pub format: SDL_GPUTextureFormat,
pub usage: SDL_GPUTextureUsageFlags,
pub width: Uint32,
pub height: Uint32,
pub layer_count_or_depth: Uint32,
pub num_levels: Uint32,
pub sample_count: SDL_GPUSampleCount,
pub props: SDL_PropertiesID,
}Expand description
Fields§
§type: SDL_GPUTextureTypeThe base dimensionality of the texture.
format: SDL_GPUTextureFormatThe pixel format of the texture.
usage: SDL_GPUTextureUsageFlagsHow the texture is intended to be used by the client.
width: Uint32The width of the texture.
height: Uint32The height of the texture.
layer_count_or_depth: Uint32The layer count or depth of the texture. This value is treated as a layer count on 2D array textures, and as a depth value on 3D textures.
num_levels: Uint32The number of mip levels in the texture.
sample_count: SDL_GPUSampleCountThe number of samples per texel. Only applies if the texture is used as a render target.
props: SDL_PropertiesIDA properties ID for extensions. Should be 0 if no extensions are needed.
Trait Implementations§
Source§impl Clone for SDL_GPUTextureCreateInfo
impl Clone for SDL_GPUTextureCreateInfo
Source§fn clone(&self) -> SDL_GPUTextureCreateInfo
fn clone(&self) -> SDL_GPUTextureCreateInfo
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_GPUTextureCreateInfo
impl Debug for SDL_GPUTextureCreateInfo
Source§impl Default for SDL_GPUTextureCreateInfo
impl Default for SDL_GPUTextureCreateInfo
Source§fn default() -> SDL_GPUTextureCreateInfo
fn default() -> SDL_GPUTextureCreateInfo
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_GPUTextureCreateInfo
impl Hash for SDL_GPUTextureCreateInfo
Source§impl PartialEq for SDL_GPUTextureCreateInfo
impl PartialEq for SDL_GPUTextureCreateInfo
impl Copy for SDL_GPUTextureCreateInfo
impl Eq for SDL_GPUTextureCreateInfo
impl StructuralPartialEq for SDL_GPUTextureCreateInfo
Auto Trait Implementations§
impl Freeze for SDL_GPUTextureCreateInfo
impl RefUnwindSafe for SDL_GPUTextureCreateInfo
impl Send for SDL_GPUTextureCreateInfo
impl Sync for SDL_GPUTextureCreateInfo
impl Unpin for SDL_GPUTextureCreateInfo
impl UnwindSafe for SDL_GPUTextureCreateInfo
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