Struct spirv_layout::EntryPoint
source · [−]pub struct EntryPoint {
pub name: String,
pub execution_model: ExecutionModel,
pub uniforms: Vec<UniformVariable>,
pub push_constants: Vec<PushConstantVariable>,
pub inputs: Vec<LocationVariable>,
pub outputs: Vec<LocationVariable>,
}
Expand description
Describes a single EntryPoint
in a SPIR-V module.
A SPIR-V module can have multiple entry points with different names, each defining a single shader.
Fields
name: String
The name of the entry point, used for identification
execution_model: ExecutionModel
The ExecutionModel
of the entry point, selects which type of shader this entry point defines
uniforms: Vec<UniformVariable>
All uniform variables used in this shader
push_constants: Vec<PushConstantVariable>
All push constant variables used in this shader
inputs: Vec<LocationVariable>
All inputs used in this shader
outputs: Vec<LocationVariable>
All outputs used in this shader