omni::graph::exec::unstable::PassTypeRegistryEntry

Defined in omni/graph/exec/unstable/IPassTypeRegistry.h

struct PassTypeRegistryEntry

ABI-safe struct to hold registered omni::graph::exec::unstable::IPassFactory objects.

PassTypeRegistryEntry can be safely passed by pointer or value across the ABI.

Public Members

uint32_t id

The ID for the pass that uniquely identifies it. Useful for pass deregistration.

const char *name

The name of the pass type.

IPassFactory *factory

Factory interface for creating an instance of the pass.

This struct does not acquire this pointer.

This pointer is never nullptr.

const ConstName *nameToMatch

Some passes (e.g. populate passes) desire to affect only a subset of the nodes and/or definitions in a graph. This field is used to specify the name of the node/definitions the pass wishes to affect.

The meaning of this field is pass type dependent. Many passes ignore this field.

This pointer is never nullptr.

PassPriority priority

Some pass types (e.g. partition passes) are designed such that only a single pass should affect an entity. When multiple passes wish to affect an entity, this priority value can be used to resolve the conflict. The meaning of the priority value is pass type specific. Many passes ignore this value.

uint32_t reserved

Reserved padding space.