#[repr(transparent)]pub struct SDL_GPUShaderFormat(pub Uint32);Expand description
Specifies the format of shader code.
Each format corresponds to a specific backend that accepts it.
§Availability
This datatype is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | SDL_GPU_SHADERFORMAT_INVALID | |
PRIVATE | SDL_GPU_SHADERFORMAT_PRIVATE | Shaders for NDA’d platforms. |
SPIRV | SDL_GPU_SHADERFORMAT_SPIRV | SPIR-V shaders for Vulkan. |
DXBC | SDL_GPU_SHADERFORMAT_DXBC | DXBC SM5_1 shaders for D3D12. |
DXIL | SDL_GPU_SHADERFORMAT_DXIL | DXIL SM6_0 shaders for D3D12. |
MSL | SDL_GPU_SHADERFORMAT_MSL | MSL shaders for Metal. |
METALLIB | SDL_GPU_SHADERFORMAT_METALLIB | Precompiled metallib shaders for Metal. |
Tuple Fields§
§0: Uint32Implementations§
Source§impl SDL_GPUShaderFormat
impl SDL_GPUShaderFormat
Trait Implementations§
Source§impl BitAnd for SDL_GPUShaderFormat
impl BitAnd for SDL_GPUShaderFormat
Source§impl BitAndAssign for SDL_GPUShaderFormat
impl BitAndAssign for SDL_GPUShaderFormat
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_GPUShaderFormat
impl BitOr for SDL_GPUShaderFormat
Source§impl BitOrAssign for SDL_GPUShaderFormat
impl BitOrAssign for SDL_GPUShaderFormat
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_GPUShaderFormat
impl BitXor for SDL_GPUShaderFormat
Source§impl BitXorAssign for SDL_GPUShaderFormat
impl BitXorAssign for SDL_GPUShaderFormat
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_GPUShaderFormat
impl Clone for SDL_GPUShaderFormat
Source§fn clone(&self) -> SDL_GPUShaderFormat
fn clone(&self) -> SDL_GPUShaderFormat
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_GPUShaderFormat
Available on crate feature debug-impls only.
impl Debug for SDL_GPUShaderFormat
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUShaderFormat
impl Default for SDL_GPUShaderFormat
Source§fn default() -> SDL_GPUShaderFormat
fn default() -> SDL_GPUShaderFormat
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUShaderFormat> for Uint32
impl From<SDL_GPUShaderFormat> for Uint32
Source§fn from(value: SDL_GPUShaderFormat) -> Self
fn from(value: SDL_GPUShaderFormat) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUShaderFormat
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUShaderFormat
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_GPUShaderFormat
impl Hash for SDL_GPUShaderFormat
Source§impl Not for SDL_GPUShaderFormat
impl Not for SDL_GPUShaderFormat
Source§impl PartialEq<SDL_GPUShaderFormat> for Uint32
impl PartialEq<SDL_GPUShaderFormat> for Uint32
Source§impl PartialEq<u32> for SDL_GPUShaderFormat
impl PartialEq<u32> for SDL_GPUShaderFormat
Source§impl PartialEq for SDL_GPUShaderFormat
impl PartialEq for SDL_GPUShaderFormat
impl Copy for SDL_GPUShaderFormat
impl Eq for SDL_GPUShaderFormat
impl StructuralPartialEq for SDL_GPUShaderFormat
Auto Trait Implementations§
impl Freeze for SDL_GPUShaderFormat
impl RefUnwindSafe for SDL_GPUShaderFormat
impl Send for SDL_GPUShaderFormat
impl Sync for SDL_GPUShaderFormat
impl Unpin for SDL_GPUShaderFormat
impl UnwindSafe for SDL_GPUShaderFormat
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