Struct spirq::Manifest[][src]

pub struct Manifest { /* fields omitted */ }
Expand description

A set of information used to describe variable typing and routing.

Implementations

Merge metadata records in another manifest into the current one. If the type bound to a interface location, a descriptor binding point or an offset position in push constant block mismatches, the merge will fail and the self manifest will be corrupted.

Similar to merge but optionally the current input interface variables can be kept alive, and the output interface variables can be cleared and replaced with entries in other; and names are all discarded. This can be used to merge pipeline stages.

Get the push constant type.

Get the input interface variable type.

Get the output interface variable type.

Get the descriptor type at the given descriptor binding point.

Get the name that also refers to the push constant block.

Get the name that also refers to the input at the given location.

Get the name that also refers to the output at the given location.

Get the name that also refers to the descriptor at the given descriptor binding.

Get the valid access patterns of the descriptor at the given binding point. Currently only storage buffers and storage images can be accessed by write.

Note that the returned access type is the nominal access type declared in SPIR-V. If a storage image is declared as ReadWrite but is only accessed by write, it is still considered a ReadWrite descriptor.

Get the metadata of a input variable identified by a symbol.

Get the metadata of a output variable identified by a symbol.

Get the metadata of a descriptor variable identified by a symbol. If the exact variable cannot be resolved, the descriptor part of the resolution will still be returned, if possible.

Get the metadata of a descriptor variable identified by a symbol. If the exact variable cannot be resolved, the descriptor part of the resolution will still be returned, if possible.

List all input locations.

List all output locations in this manifest.

List all descriptors in this manifest. In case of a descriptor pointing to a buffer block, the outermost structure type will be filled in member_var_res.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.