#[repr(C)]pub struct SDL_GPUGraphicsPipelineCreateInfo {
pub vertex_shader: *mut SDL_GPUShader,
pub fragment_shader: *mut SDL_GPUShader,
pub vertex_input_state: SDL_GPUVertexInputState,
pub primitive_type: SDL_GPUPrimitiveType,
pub rasterizer_state: SDL_GPURasterizerState,
pub multisample_state: SDL_GPUMultisampleState,
pub depth_stencil_state: SDL_GPUDepthStencilState,
pub target_info: SDL_GPUGraphicsPipelineTargetInfo,
pub props: SDL_PropertiesID,
}Expand description
Fields§
§vertex_shader: *mut SDL_GPUShaderThe vertex shader used by the graphics pipeline.
fragment_shader: *mut SDL_GPUShaderThe fragment shader used by the graphics pipeline.
vertex_input_state: SDL_GPUVertexInputStateThe vertex layout of the graphics pipeline.
primitive_type: SDL_GPUPrimitiveTypeThe primitive topology of the graphics pipeline.
rasterizer_state: SDL_GPURasterizerStateThe rasterizer state of the graphics pipeline.
multisample_state: SDL_GPUMultisampleStateThe multisample state of the graphics pipeline.
depth_stencil_state: SDL_GPUDepthStencilStateThe depth-stencil state of the graphics pipeline.
target_info: SDL_GPUGraphicsPipelineTargetInfoFormats and blend modes for the render targets of the graphics pipeline.
props: SDL_PropertiesIDA properties ID for extensions. Should be 0 if no extensions are needed.
Trait Implementations§
Source§impl Clone for SDL_GPUGraphicsPipelineCreateInfo
impl Clone for SDL_GPUGraphicsPipelineCreateInfo
Source§fn clone(&self) -> SDL_GPUGraphicsPipelineCreateInfo
fn clone(&self) -> SDL_GPUGraphicsPipelineCreateInfo
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_GPUGraphicsPipelineCreateInfo
Auto Trait Implementations§
impl Freeze for SDL_GPUGraphicsPipelineCreateInfo
impl RefUnwindSafe for SDL_GPUGraphicsPipelineCreateInfo
impl !Send for SDL_GPUGraphicsPipelineCreateInfo
impl !Sync for SDL_GPUGraphicsPipelineCreateInfo
impl Unpin for SDL_GPUGraphicsPipelineCreateInfo
impl UnwindSafe for SDL_GPUGraphicsPipelineCreateInfo
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