pub struct TextureBinding {
pub resource: ResourceId,
pub sampler: Option<ResourceId>,
pub source: TextureSource,
}Expand description
One texture slot: the texture resource of the shader, the sampler resource it is read through, and what is bound.
Fields§
§resource: ResourceId§sampler: Option<ResourceId>The sampler resource of the shader the program reads this texture through, where it reads it through exactly
one. None where the program only loads it (no sampler), reads it through several (each sampler’s state is the
stage’s, StageBinding::samplers), or the source does not say.
source: TextureSourceTrait Implementations§
Source§impl Clone for TextureBinding
impl Clone for TextureBinding
Source§impl Debug for TextureBinding
impl Debug for TextureBinding
Source§impl PartialEq for TextureBinding
impl PartialEq for TextureBinding
Source§impl Serialize for TextureBinding
impl Serialize for TextureBinding
impl StructuralPartialEq for TextureBinding
Auto Trait Implementations§
impl Forget for TextureBinding
impl Freeze for TextureBinding
impl RefUnwindSafe for TextureBinding
impl Send for TextureBinding
impl Sync for TextureBinding
impl Unpin for TextureBinding
impl UnsafeUnpin for TextureBinding
impl UnwindSafe for TextureBinding
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