#[repr(C)]pub struct SDL_GPUViewport {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
pub min_depth: f32,
pub max_depth: f32,
}Expand description
A structure specifying a viewport.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_SetGPUViewport
Fields§
§x: f32< The left offset of the viewport.
y: f32< The top offset of the viewport.
w: f32< The width of the viewport.
h: f32< The height of the viewport.
min_depth: f32< The minimum depth of the viewport.
max_depth: f32< The maximum depth of the viewport.
Trait Implementations§
Source§impl Clone for SDL_GPUViewport
impl Clone for SDL_GPUViewport
Source§fn clone(&self) -> SDL_GPUViewport
fn clone(&self) -> SDL_GPUViewport
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_GPUViewport
impl Debug for SDL_GPUViewport
Source§impl Default for SDL_GPUViewport
impl Default for SDL_GPUViewport
Source§fn default() -> SDL_GPUViewport
fn default() -> SDL_GPUViewport
Returns the “default value” for a type. Read more
impl Copy for SDL_GPUViewport
Auto Trait Implementations§
impl Freeze for SDL_GPUViewport
impl RefUnwindSafe for SDL_GPUViewport
impl Send for SDL_GPUViewport
impl Sync for SDL_GPUViewport
impl Unpin for SDL_GPUViewport
impl UnsafeUnpin for SDL_GPUViewport
impl UnwindSafe for SDL_GPUViewport
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