#[repr(C)]pub struct SDL_GPUGraphicsPipelineTargetInfo {
pub color_target_descriptions: *const SDL_GPUColorTargetDescription,
pub num_color_targets: Uint32,
pub depth_stencil_format: SDL_GPUTextureFormat,
pub has_depth_stencil_target: bool,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
}Expand description
A structure specifying the descriptions of render targets used in a graphics pipeline.
§Availability
This struct is available since SDL 3.2.0.
§See also
§Notes for sdl3-sys
This struct has padding fields which shouldn’t be accessed directly; use struct update syntax with e.g. ..Default::default() for manual construction.
Fields§
§color_target_descriptions: *const SDL_GPUColorTargetDescriptionA pointer to an array of color target descriptions.
num_color_targets: Uint32The number of color target descriptions in the above array.
depth_stencil_format: SDL_GPUTextureFormatThe pixel format of the depth-stencil target. Ignored if has_depth_stencil_target is false.
has_depth_stencil_target: booltrue specifies that the pipeline uses a depth-stencil target.
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_GPUGraphicsPipelineTargetInfo
impl Clone for SDL_GPUGraphicsPipelineTargetInfo
Source§fn clone(&self) -> SDL_GPUGraphicsPipelineTargetInfo
fn clone(&self) -> SDL_GPUGraphicsPipelineTargetInfo
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 moreimpl Copy for SDL_GPUGraphicsPipelineTargetInfo
Auto Trait Implementations§
impl Freeze for SDL_GPUGraphicsPipelineTargetInfo
impl RefUnwindSafe for SDL_GPUGraphicsPipelineTargetInfo
impl !Send for SDL_GPUGraphicsPipelineTargetInfo
impl !Sync for SDL_GPUGraphicsPipelineTargetInfo
impl Unpin for SDL_GPUGraphicsPipelineTargetInfo
impl UnwindSafe for SDL_GPUGraphicsPipelineTargetInfo
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