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.
pub fn resolve_output<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<InterfaceVariableResolution<'_>>[src]
pub fn resolve_output<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<InterfaceVariableResolution<'_>>[src]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
Auto Trait Implementations
impl RefUnwindSafe for Manifestimpl UnwindSafe for ManifestBlanket Implementations
Mutably borrows from an owned value. Read more