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: StringThe name of the entry point, used for identification
execution_model: ExecutionModelThe 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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryPoint
impl RefUnwindSafe for EntryPoint
impl Send for EntryPoint
impl Sync for EntryPoint
impl Unpin for EntryPoint
impl UnwindSafe for EntryPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more