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: ExecutionModel

Entry point execution model.

name: String

Name of the entry point.

manifest: Manifest

Manifest object that contains input, output and descriptor type information.

spec: Specialization

Specialization 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.

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

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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.