#[repr(C)]pub struct SDL_GPUStorageTextureReadWriteBinding {
pub texture: *mut SDL_GPUTexture,
pub mip_level: Uint32,
pub layer: Uint32,
pub cycle: bool,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
}Expand description
A structure specifying parameters related to binding textures in a compute pass.
§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§
§texture: *mut SDL_GPUTextureThe texture to bind. Must have been created with SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_WRITE or SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_SIMULTANEOUS_READ_WRITE.
mip_level: Uint32The mip level index to bind.
layer: Uint32The layer index to bind.
cycle: booltrue cycles the texture if it is already bound.
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_GPUStorageTextureReadWriteBinding
impl Clone for SDL_GPUStorageTextureReadWriteBinding
Source§fn clone(&self) -> SDL_GPUStorageTextureReadWriteBinding
fn clone(&self) -> SDL_GPUStorageTextureReadWriteBinding
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_GPUStorageTextureReadWriteBinding
Auto Trait Implementations§
impl Freeze for SDL_GPUStorageTextureReadWriteBinding
impl RefUnwindSafe for SDL_GPUStorageTextureReadWriteBinding
impl !Send for SDL_GPUStorageTextureReadWriteBinding
impl !Sync for SDL_GPUStorageTextureReadWriteBinding
impl Unpin for SDL_GPUStorageTextureReadWriteBinding
impl UnwindSafe for SDL_GPUStorageTextureReadWriteBinding
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