#[repr(C)]pub struct SDL_GPUTextureSamplerBinding {
pub texture: *mut SDL_GPUTexture,
pub sampler: *mut SDL_GPUSampler,
}Expand description
A structure specifying parameters in a sampler binding call.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_BindGPUVertexSamplers See Also: SDL_BindGPUFragmentSamplers See Also: SDL_GPUTexture See Also: SDL_GPUSampler
Fields§
§texture: *mut SDL_GPUTexture< The texture to bind. Must have been created with SDL_GPU_TEXTUREUSAGE_SAMPLER.
sampler: *mut SDL_GPUSampler< The sampler to bind.
Trait Implementations§
Source§impl Clone for SDL_GPUTextureSamplerBinding
impl Clone for SDL_GPUTextureSamplerBinding
Source§fn clone(&self) -> SDL_GPUTextureSamplerBinding
fn clone(&self) -> SDL_GPUTextureSamplerBinding
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_GPUTextureSamplerBinding
impl Debug for SDL_GPUTextureSamplerBinding
Source§impl Hash for SDL_GPUTextureSamplerBinding
impl Hash for SDL_GPUTextureSamplerBinding
impl Copy for SDL_GPUTextureSamplerBinding
Auto Trait Implementations§
impl Freeze for SDL_GPUTextureSamplerBinding
impl RefUnwindSafe for SDL_GPUTextureSamplerBinding
impl !Send for SDL_GPUTextureSamplerBinding
impl !Sync for SDL_GPUTextureSamplerBinding
impl Unpin for SDL_GPUTextureSamplerBinding
impl UnsafeUnpin for SDL_GPUTextureSamplerBinding
impl UnwindSafe for SDL_GPUTextureSamplerBinding
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