Struct librashader_reflect::reflect::semantics::MemberOffset
source · pub struct MemberOffset {
pub ubo: Option<usize>,
pub push: Option<usize>,
}
Expand description
The offset of a uniform member.
A uniform can be bound to both the UBO, or as a Push Constant.
Fields§
§ubo: Option<usize>
The offset of the uniform member within the UBO.
push: Option<usize>
The offset of the uniform member within the Push Constant range.
Implementations§
source§impl MemberOffset
impl MemberOffset
pub fn offset(&self, ty: UniformMemberBlock) -> Option<usize>
Trait Implementations§
source§impl Clone for MemberOffset
impl Clone for MemberOffset
source§fn clone(&self) -> MemberOffset
fn clone(&self) -> MemberOffset
Returns a copy 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 MemberOffset
impl Debug for MemberOffset
source§impl PartialEq<MemberOffset> for MemberOffset
impl PartialEq<MemberOffset> for MemberOffset
source§fn eq(&self, other: &MemberOffset) -> bool
fn eq(&self, other: &MemberOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemberOffset
impl Eq for MemberOffset
impl StructuralEq for MemberOffset
impl StructuralPartialEq for MemberOffset
Auto Trait Implementations§
impl RefUnwindSafe for MemberOffset
impl Send for MemberOffset
impl Sync for MemberOffset
impl Unpin for MemberOffset
impl UnwindSafe for MemberOffset
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