Struct spirq::EntryPoint [−][src]
pub struct EntryPoint {
pub exec_model: ExecutionModel,
pub name: String,
pub manifest: Manifest,
pub spec: Specialization,
}Expand description
Representing an entry point described in a SPIR-V.
Fields
exec_model: ExecutionModelEntry point execution model.
name: StringName of the entry point.
manifest: ManifestManifest object that contains input, output and descriptor type information.
spec: SpecializationSpecialization description of the entry point.
Methods from Deref<Target = Manifest>
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 EntryPointimpl Send for EntryPointimpl Sync for EntryPointimpl Unpin for EntryPointimpl UnwindSafe for EntryPointBlanket Implementations
Mutably borrows from an owned value. Read more