fn find_matrix_in_access_chain(
module: &Module,
base: Handle<Expression>,
func_ctx: &FunctionCtx<'_>,
) -> Option<(Handle<Expression>, Option<Index>, Option<Index>)>
Expand description
If base
is an access chain of the form mat
, mat[col]
, or mat[col][row]
,
returns a tuple of the matrix, the column (vector) index (if present), and
the row (scalar) index (if present).