warp.struct#

warp.struct(c, *, module=None)[source]#

Decorator to define a Warp struct for use in kernels and functions.

Structs allow grouping related data fields that can be passed to @wp.kernel and @wp.func decorated functions.

Parameters:
Return type:

Struct