const fn needs_access_qualifier(&self) -> bool {
        match *self {
            //Note: we are ignoring the storage access here, and instead
            // rely on the actual use of a global by functions. This means we
            // may end up with "const" even if the binding is read-write,
            // and that should be OK.
            Self::Storage { .. } => true,
            // These should always be read-write.
            Self::Private | Self::WorkGroup => false,
            // These translate to `constant` address space, no need for qualifiers.
            Self::Uniform | Self::PushConstant => false,
            // Not applicable.
            Self::Handle | Self::Function => false,
        }
    }
/// Returns true if the address space may need a "const" qualifier.
Returns true if the address space may need a "const" qualifier.
Returns true if the address space may need a " const " qualifier .
const fn needs_access_qualifier(&self) -> bool {
        match *self {
            //Note: we are ignoring the storage access here, and instead
            // rely on the actual use of a global by functions. This means we
            // may end up with "const" even if the binding is read-write,
            // and that should be OK.
            Self::Storage { .. } => true,
            // These should always be read-write.
            Self::Private | Self::WorkGroup => false,
            // These translate to `constant` address space, no need for qualifiers.
            Self::Uniform | Self::PushConstant => false,
            // Not applicable.
            Self::Handle | Self::Function => false,
        }
    }
const fn needs_access_qualifier ( & self ) -> bool { match * self { //Note: we are ignoring the storage access here, and instead // rely on the actual use of a global by functions. This means we // may end up with "const" even if the binding is read-write, // and that should be OK. Self :: Storage { .. } => true , // These should always be read-write. Self :: Private | Self :: WorkGroup => false , // These translate to `constant` address space, no need for qualifiers. Self :: Uniform | Self :: PushConstant => false , // Not applicable. Self :: Handle | Self :: Function => false , } }
Returns true if the address space may need a "const" qualifier.
Returns true if the address space may need a " const " qualifier .
&self
&self