#[repr(C)]pub struct SDL_GPUShaderCreateInfo {
pub code_size: usize,
pub code: *const Uint8,
pub entrypoint: *const c_char,
pub format: SDL_GPUShaderFormat,
pub stage: SDL_GPUShaderStage,
pub num_samplers: Uint32,
pub num_storage_textures: Uint32,
pub num_storage_buffers: Uint32,
pub num_uniform_buffers: Uint32,
pub props: SDL_PropertiesID,
}Expand description
Fields§
§code_size: usizeThe size in bytes of the code pointed to.
code: *const Uint8A pointer to shader code.
entrypoint: *const c_charA pointer to a null-terminated UTF-8 string specifying the entry point function name for the shader.
format: SDL_GPUShaderFormatThe format of the shader code.
stage: SDL_GPUShaderStageThe stage the shader program corresponds to.
num_samplers: Uint32The number of samplers defined in the shader.
num_storage_textures: Uint32The number of storage textures defined in the shader.
num_storage_buffers: Uint32The number of storage buffers defined in the shader.
num_uniform_buffers: Uint32The number of uniform buffers defined in the shader.
props: SDL_PropertiesIDA properties ID for extensions. Should be 0 if no extensions are needed.
Trait Implementations§
Source§impl Clone for SDL_GPUShaderCreateInfo
impl Clone for SDL_GPUShaderCreateInfo
Source§fn clone(&self) -> SDL_GPUShaderCreateInfo
fn clone(&self) -> SDL_GPUShaderCreateInfo
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_GPUShaderCreateInfo
impl Debug for SDL_GPUShaderCreateInfo
Source§impl Default for SDL_GPUShaderCreateInfo
impl Default for SDL_GPUShaderCreateInfo
impl Copy for SDL_GPUShaderCreateInfo
Auto Trait Implementations§
impl Freeze for SDL_GPUShaderCreateInfo
impl RefUnwindSafe for SDL_GPUShaderCreateInfo
impl !Send for SDL_GPUShaderCreateInfo
impl !Sync for SDL_GPUShaderCreateInfo
impl Unpin for SDL_GPUShaderCreateInfo
impl UnwindSafe for SDL_GPUShaderCreateInfo
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