pub struct BindTarget {
pub cbv: Option<RegisterBinding>,
pub uav: Option<RegisterBinding>,
pub srv: Option<RegisterBinding>,
pub sampler: Option<RegisterBinding>,
}Available on crate feature
hlsl only.Expand description
The HLSL buffer to bind a resource to.
A single SPIR-V binding may bind to multiple registers for multiple resource types.
For example, for combined image samplers, both the srv and sampler
bindings will be considered.
Fields§
§cbv: Option<RegisterBinding>Bind to a constant buffer view register.
uav: Option<RegisterBinding>Bind to an unordered access view register.
srv: Option<RegisterBinding>Bind to a shader resource view register.
sampler: Option<RegisterBinding>Bind to a sampler register.
Trait Implementations§
Source§impl Clone for BindTarget
impl Clone for BindTarget
Source§fn clone(&self) -> BindTarget
fn clone(&self) -> BindTarget
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 BindTarget
impl Debug for BindTarget
Source§impl Hash for BindTarget
impl Hash for BindTarget
Source§impl PartialEq for BindTarget
impl PartialEq for BindTarget
impl Eq for BindTarget
impl StructuralPartialEq for BindTarget
Auto Trait Implementations§
impl Freeze for BindTarget
impl RefUnwindSafe for BindTarget
impl Send for BindTarget
impl Sync for BindTarget
impl Unpin for BindTarget
impl UnwindSafe for BindTarget
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