warp.Scalar#
- warp.Scalar#
Generic annotation for any Warp integer or floating-point scalar type.
Use
Scalarto annotate parameters of generic Warp kernels and functions, either directly or as thedtypeof a generic array, vector, or matrix.Scalarmatches the types thatIntandFloatmatch:booldoesn’t matchScalar.For more on writing generic kernels and functions with
Scalar, see Generic Type Annotations.