pub enum ArrayDimension {
Literal(u32),
Constant(Handle<ConstantId>),
}Expand description
Valid values that specify the dimensions of an array.
Most of the time, these will be ArrayDimension::Literal.
If an array dimension is specified as a specialization constant,
then the dimension will be ArrayDimension::Constant.
Variants§
Literal(u32)
A literal array dimension, i.e. array[4].
Constant(Handle<ConstantId>)
An array dimension specified as a specialization constant.
This would show up in something like the following
layout (constant_id = 0) const int SSAO_KERNEL_SIZE = 2;
vec4[SSAO_KERNEL_SIZE] kernel;Trait Implementations§
Source§impl Clone for ArrayDimension
impl Clone for ArrayDimension
Source§fn clone(&self) -> ArrayDimension
fn clone(&self) -> ArrayDimension
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 ArrayDimension
impl Debug for ArrayDimension
Source§impl PartialEq for ArrayDimension
impl PartialEq for ArrayDimension
impl Eq for ArrayDimension
impl StructuralPartialEq for ArrayDimension
Auto Trait Implementations§
impl Freeze for ArrayDimension
impl RefUnwindSafe for ArrayDimension
impl Send for ArrayDimension
impl Sync for ArrayDimension
impl Unpin for ArrayDimension
impl UnwindSafe for ArrayDimension
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