Function naga::valid::type::ptr_space_argument_flag

source ยท
const fn ptr_space_argument_flag(space: AddressSpace) -> TypeFlags
Expand description

Determine whether a pointer in space can be passed as an argument.

If a pointer in space is permitted to be passed as an argument to a user-defined function, return TypeFlags::ARGUMENT. Otherwise, return TypeFlags::empty().

Pointers passed as arguments to user-defined functions must be in the Function or Private address space.