pub struct SamplerBinding {
pub visibility: ShaderVisibility,
pub shader_register: u32,
pub register_space: u32,
pub sampler_info: SamplerInfo,
}Expand description
Individual sampler state binding for use in static samplers in a PipelineLayout.
Fields§
§visibility: ShaderVisibilityThe shader stage the sampler will be accessible to
shader_register: u32Register index to bind to (supplied in shader)
register_space: u32Register space to bind to (supplied in shader)
sampler_info: SamplerInfoSampler Info
Trait Implementations§
Source§impl Clone for SamplerBinding
impl Clone for SamplerBinding
Source§fn clone(&self) -> SamplerBinding
fn clone(&self) -> SamplerBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SamplerBinding
Source§impl<'de> Deserialize<'de> for SamplerBinding
impl<'de> Deserialize<'de> for SamplerBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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