#[repr(transparent)]pub struct SDL_GPUStoreOp(pub c_int);Expand description
Specifies how the contents of a texture attached to a render pass are treated at the end of the render pass.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
STORE | SDL_GPU_STOREOP_STORE | The contents generated during the render pass will be written to memory. |
DONT_CARE | SDL_GPU_STOREOP_DONT_CARE | The contents generated during the render pass are not needed and may be discarded. The contents will be undefined. |
RESOLVE | SDL_GPU_STOREOP_RESOLVE | The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture may then be discarded and will be undefined. |
RESOLVE_AND_STORE | SDL_GPU_STOREOP_RESOLVE_AND_STORE | The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUStoreOp
impl SDL_GPUStoreOp
Sourcepub const DONT_CARE: Self
pub const DONT_CARE: Self
The contents generated during the render pass are not needed and may be discarded. The contents will be undefined.
Sourcepub const RESOLVE: Self
pub const RESOLVE: Self
The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture may then be discarded and will be undefined.
Sourcepub const RESOLVE_AND_STORE: Self
pub const RESOLVE_AND_STORE: Self
The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory.
Trait Implementations§
Source§impl Clone for SDL_GPUStoreOp
impl Clone for SDL_GPUStoreOp
Source§fn clone(&self) -> SDL_GPUStoreOp
fn clone(&self) -> SDL_GPUStoreOp
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_GPUStoreOp
Available on crate feature debug-impls only.
impl Debug for SDL_GPUStoreOp
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUStoreOp
impl Default for SDL_GPUStoreOp
Source§fn default() -> SDL_GPUStoreOp
fn default() -> SDL_GPUStoreOp
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUStoreOp> for c_int
impl From<SDL_GPUStoreOp> for c_int
Source§fn from(value: SDL_GPUStoreOp) -> Self
fn from(value: SDL_GPUStoreOp) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUStoreOp
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUStoreOp
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_GPUStoreOp
impl Hash for SDL_GPUStoreOp
Source§impl Ord for SDL_GPUStoreOp
impl Ord for SDL_GPUStoreOp
Source§fn cmp(&self, other: &SDL_GPUStoreOp) -> Ordering
fn cmp(&self, other: &SDL_GPUStoreOp) -> 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_GPUStoreOp> for c_int
impl PartialEq<SDL_GPUStoreOp> for c_int
Source§impl PartialEq<i32> for SDL_GPUStoreOp
impl PartialEq<i32> for SDL_GPUStoreOp
Source§impl PartialEq for SDL_GPUStoreOp
impl PartialEq for SDL_GPUStoreOp
Source§impl PartialOrd for SDL_GPUStoreOp
impl PartialOrd for SDL_GPUStoreOp
impl Copy for SDL_GPUStoreOp
impl Eq for SDL_GPUStoreOp
impl StructuralPartialEq for SDL_GPUStoreOp
Auto Trait Implementations§
impl Freeze for SDL_GPUStoreOp
impl RefUnwindSafe for SDL_GPUStoreOp
impl Send for SDL_GPUStoreOp
impl Sync for SDL_GPUStoreOp
impl Unpin for SDL_GPUStoreOp
impl UnwindSafe for SDL_GPUStoreOp
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