warp.ref#
- class warp.ref[source]#
Pass-by-reference parameter annotation:
warp.ref[T].Annotate a
@warp.funcor@warp.func_nativeparameter aswarp.ref[T]to receive an addressable argument by reference. Mutations to the parameter are visible in the caller’s storage without a return value.Accepted argument expressions at call sites include local variables, reference parameters, array elements, struct fields, and vector/matrix/quaternion/transform components. Literals, arithmetic temporaries, and function-call results are rejected at compile time.
warp.ref[T]is not allowed in@warp.kernelsignatures; pass addressable values into helper functions instead.- __init__()#
Methods
__init__()