RpResource Example Allocator Node#

Allocate CUDA-interoperable RpResource

Installation#

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs#

Name

Type

Description

Default

stream (stream)

uint64

Pointer to the CUDA Stream

Prim path input (primPath)

token

Prim path input. Points and a prim path may be supplied directly as an alternative to a bundle input.

Prim Points (points)

float[3][]

Points attribute input. Points and a prim path may be supplied directly as an alternative to a bundle input.

Verbose (verbose)

bool

verbose printing

False

Reload (reload)

bool

Force RpResource reload

False

Outputs#

Name

Type

Description

Default

Resource Pointer Collection (resourcePointerCollection)

uint64[]

Pointers to RpResources (two resources per prim are allocated – one for rest positions and one for deformed positions)

Point Counts (pointCountCollection)

uint64[]

Point count for each prim being deformed

Prim Paths (primPathCollection)

token[]

Path for each prim being deformed

Reload (reload)

bool

Force RpResource reload

False

stream (stream)

uint64

Pointer to the CUDA Stream