pub struct SamplerBinding {
pub resource: ResourceId,
pub state: SamplerState,
}Expand description
The state of one sampler resource of a program, as the source binds it (StageBinding::samplers).
Fields§
§resource: ResourceIdThe sampler resource of the shader.
state: SamplerStateIts filters, addressing, border colour, comparison and level range, each as the source states it.
Trait Implementations§
Source§impl Clone for SamplerBinding
impl Clone for SamplerBinding
Source§impl Debug for SamplerBinding
impl Debug for SamplerBinding
Source§impl PartialEq for SamplerBinding
impl PartialEq for SamplerBinding
Source§impl Serialize for SamplerBinding
impl Serialize for SamplerBinding
impl StructuralPartialEq for SamplerBinding
Auto Trait Implementations§
impl Forget for SamplerBinding
impl Freeze for SamplerBinding
impl RefUnwindSafe for SamplerBinding
impl Send for SamplerBinding
impl Sync for SamplerBinding
impl Unpin for SamplerBinding
impl UnsafeUnpin for SamplerBinding
impl UnwindSafe for SamplerBinding
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