[][src]Function slang_sys::spReflectionType_GetElementCount

pub unsafe extern "C" fn spReflectionType_GetElementCount(
    type_: *mut SlangReflectionType
) -> usize

Returns the number of elements in the given type.

This operation is valid for vector and array types. For other types it returns zero.

When invoked on an unbounded-size array it will return SLANG_UNBOUNDED_SIZE, which is defined to be ~size_t(0).

If the size of a type cannot be statically computed, perhaps because it depends on a generic parameter that has not been bound to a specific value, this function returns zero.