Struct librashader_reflect::reflect::semantics::MemberOffset
source · Expand description
The offset of a uniform member.
A uniform can be bound to either the UBO, or as a Push Constant. Binding the same variable name to both locations will result in indeterminate results.
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 ==.