colour_visuals.common.conform_primitive_dtype#
- class colour_visuals.common.conform_primitive_dtype(primitive: Tuple[ndarray[Any, dtype[_ScalarType_co]], ndarray[Any, dtype[_ScalarType_co]], ndarray[Any, dtype[_ScalarType_co]]])[source]#
Bases:
Conform the given primitive to the required WebGPU dtype.
- Parameters:
primitive (Tuple[numpy.ndarray[Any, numpy.dtype[numpy._typing._array_like._ScalarType_co]], numpy.ndarray[Any, numpy.dtype[numpy._typing._array_like._ScalarType_co]], numpy.ndarray[Any, numpy.dtype[numpy._typing._array_like._ScalarType_co]]]) – Primitive to conform the dtype of.
- Returns:
Conformed primitive.
- Return type: