pub struct BoundSizes(/* private fields */);Expand description
The bound size, in bytes, of the constant buffers whose binding states one; a buffer not named is bound at its declared size.
Implementations§
Source§impl BoundSizes
impl BoundSizes
Sourcepub fn new() -> BoundSizes
pub fn new() -> BoundSizes
No buffer is bound beyond its declaration.
Sourcepub fn of(constant_buffers: &[ConstantBufferBinding]) -> BoundSizes
pub fn of(constant_buffers: &[ConstantBufferBinding]) -> BoundSizes
The sizes a stage’s constant-buffer bindings state.
Sourcepub fn set(&mut self, resource: ResourceId, bytes: u32)
pub fn set(&mut self, resource: ResourceId, bytes: u32)
Bind resource at bytes.
Sourcepub fn get(&self, resource: ResourceId) -> Option<u32>
pub fn get(&self, resource: ResourceId) -> Option<u32>
The size resource is bound at, where one is stated.
Sourcepub fn apply(&self, interface: &mut Interface) -> Result<(), String>
pub fn apply(&self, interface: &mut Interface) -> Result<(), String>
Raise the layout of each constant buffer of interface this names to its bound size. A bound smaller than the
declaration is refused (the program indexes what it declares), as is a resource that is not a constant buffer
of the program.
Trait Implementations§
Source§impl Clone for BoundSizes
impl Clone for BoundSizes
Source§impl Debug for BoundSizes
impl Debug for BoundSizes
Source§impl Default for BoundSizes
impl Default for BoundSizes
impl Eq for BoundSizes
Source§impl PartialEq for BoundSizes
impl PartialEq for BoundSizes
impl StructuralPartialEq for BoundSizes
Auto Trait Implementations§
impl Forget for BoundSizes
impl Freeze for BoundSizes
impl RefUnwindSafe for BoundSizes
impl Send for BoundSizes
impl Sync for BoundSizes
impl Unpin for BoundSizes
impl UnsafeUnpin for BoundSizes
impl UnwindSafe for BoundSizes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.