#[repr(C)]pub struct SDL_GPUBlitInfo {
pub source: SDL_GPUBlitRegion,
pub destination: SDL_GPUBlitRegion,
pub load_op: SDL_GPULoadOp,
pub clear_color: SDL_FColor,
pub flip_mode: SDL_FlipMode,
pub filter: SDL_GPUFilter,
pub cycle: bool,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
}Expand description
Fields§
§source: SDL_GPUBlitRegionThe source region for the blit.
destination: SDL_GPUBlitRegionThe destination region for the blit.
load_op: SDL_GPULoadOpWhat is done with the contents of the destination before the blit.
clear_color: SDL_FColorThe color to clear the destination region to before the blit. Ignored if load_op is not SDL_GPU_LOADOP_CLEAR.
flip_mode: SDL_FlipModeThe flip mode for the source region.
filter: SDL_GPUFilterThe filter mode used when blitting.
cycle: booltrue cycles the destination texture if it is already bound.
padding1: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding2: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding3: Uint8👎Deprecated: padding fields are exempt from semver; init with
..Default::default()Trait Implementations§
Source§impl Clone for SDL_GPUBlitInfo
impl Clone for SDL_GPUBlitInfo
Source§fn clone(&self) -> SDL_GPUBlitInfo
fn clone(&self) -> SDL_GPUBlitInfo
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_GPUBlitInfo
impl Debug for SDL_GPUBlitInfo
impl Copy for SDL_GPUBlitInfo
Auto Trait Implementations§
impl Freeze for SDL_GPUBlitInfo
impl RefUnwindSafe for SDL_GPUBlitInfo
impl !Send for SDL_GPUBlitInfo
impl !Sync for SDL_GPUBlitInfo
impl Unpin for SDL_GPUBlitInfo
impl UnwindSafe for SDL_GPUBlitInfo
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