pub struct UniformNode {
pub source: UniformSource,
pub ty: Type,
pub group: UniformGroup,
pub name: Cell<Option<&'static str>>,
}Expand description
UniformNode.
Fields§
§source: UniformSourceWhere the uniform’s bytes come from.
ty: TypeThe uniform’s WGSL type.
group: UniformGroupWhich uniform block the uniform is bound in.
name: Cell<Option<&'static str>>Three names camera uniforms explicitly and numbers the rest
nodeUniformN. A Cell because three’s UniformNode.setName()
renames the node in place, so every reference to it sees the new name
(NodeRef::set_name on a uniform).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UniformNode
impl !RefUnwindSafe for UniformNode
impl !Send for UniformNode
impl !Sync for UniformNode
impl !UnwindSafe for UniformNode
impl Unpin for UniformNode
impl UnsafeUnpin for UniformNode
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