Struct vulkano::shader::EntryPoint
source · [−]pub struct EntryPoint<'a> { /* private fields */ }
Expand description
Represents a shader entry point in a shader module.
Can be obtained by calling entry_point
on the shader module.
Implementations
sourceimpl<'a> EntryPoint<'a>
impl<'a> EntryPoint<'a>
sourcepub fn module(&self) -> &'a ShaderModule
pub fn module(&self) -> &'a ShaderModule
Returns the module this entry point comes from.
sourcepub fn execution(&self) -> &ShaderExecution
pub fn execution(&self) -> &ShaderExecution
Returns the execution model of the shader.
sourcepub fn descriptor_requirements(
&self
) -> impl ExactSizeIterator<Item = ((u32, u32), &DescriptorRequirements)>
pub fn descriptor_requirements(
&self
) -> impl ExactSizeIterator<Item = ((u32, u32), &DescriptorRequirements)>
Returns the descriptor requirements.
sourcepub fn push_constant_requirements(&self) -> Option<&PushConstantRange>
pub fn push_constant_requirements(&self) -> Option<&PushConstantRange>
Returns the push constant requirements.
sourcepub fn specialization_constant_requirements(
&self
) -> impl ExactSizeIterator<Item = (u32, &SpecializationConstantRequirements)>
pub fn specialization_constant_requirements(
&self
) -> impl ExactSizeIterator<Item = (u32, &SpecializationConstantRequirements)>
Returns the specialization constant requirements.
sourcepub fn input_interface(&self) -> &ShaderInterface
pub fn input_interface(&self) -> &ShaderInterface
Returns the input attributes used by the shader stage.
sourcepub fn output_interface(&self) -> &ShaderInterface
pub fn output_interface(&self) -> &ShaderInterface
Returns the output attributes used by the shader stage.
Trait Implementations
sourceimpl<'a> Clone for EntryPoint<'a>
impl<'a> Clone for EntryPoint<'a>
sourcefn clone(&self) -> EntryPoint<'a>
fn clone(&self) -> EntryPoint<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> !RefUnwindSafe for EntryPoint<'a>
impl<'a> Send for EntryPoint<'a>
impl<'a> Sync for EntryPoint<'a>
impl<'a> Unpin for EntryPoint<'a>
impl<'a> !UnwindSafe for EntryPoint<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more