pub struct ImageSamplerSlot { /* private fields */ }Expand description
A binding to a shader’s image sampler. Calling set on this object updates a
sampler’s bound image.
Implementations§
Source§impl ImageSamplerSlot
impl ImageSamplerSlot
Sourcepub fn set(self, shader: &mut FragmentShader, val: &Image)
pub fn set(self, shader: &mut FragmentShader, val: &Image)
Set the Image value for the bound sampler associated with this slot, sampled at
FilterQuality::None.
Sourcepub fn shader_index(self) -> usize
pub fn shader_index(self) -> usize
VisibleForTesting: This is the index one would use with
FragmentShader::set_image_sampler for this sampler.
Trait Implementations§
Source§impl Clone for ImageSamplerSlot
impl Clone for ImageSamplerSlot
impl Copy for ImageSamplerSlot
Auto Trait Implementations§
impl Forget for ImageSamplerSlot
impl Freeze for ImageSamplerSlot
impl Move for ImageSamplerSlot
impl RefUnwindSafe for ImageSamplerSlot
impl Send for ImageSamplerSlot
impl Sync for ImageSamplerSlot
impl Unpin for ImageSamplerSlot
impl UnsafeUnpin for ImageSamplerSlot
impl UnwindSafe for ImageSamplerSlot
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