Enum vulkano::pipeline::shader::EmptyEntryPointDummy
source · pub enum EmptyEntryPointDummy {}
Expand description
A dummy that implements GraphicsEntryPointAbstract
and EntryPointAbstract
.
When a function has a signature like: fn foo<S: EntryPointAbstract>(shader: Option<S>)
, you
can pass None::<EmptyEntryPointDummy>
.
This object is meant to be a replacement to !
before it is stabilized.
Trait Implementations
sourceimpl Clone for EmptyEntryPointDummy
impl Clone for EmptyEntryPointDummy
sourcefn clone(&self) -> EmptyEntryPointDummy
fn clone(&self) -> EmptyEntryPointDummy
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 moresourceimpl Debug for EmptyEntryPointDummy
impl Debug for EmptyEntryPointDummy
sourceimpl EntryPointAbstract for EmptyEntryPointDummy
impl EntryPointAbstract for EmptyEntryPointDummy
type PipelineLayout = EmptyPipelineDesc
type SpecializationConstants = ()
sourcefn module(&self) -> &ShaderModule
fn module(&self) -> &ShaderModule
Returns the module this entry point comes from.
sourcefn layout(&self) -> &EmptyPipelineDesc
fn layout(&self) -> &EmptyPipelineDesc
Returns the pipeline layout used by the shader stage.
sourceimpl GraphicsEntryPointAbstract for EmptyEntryPointDummy
impl GraphicsEntryPointAbstract for EmptyEntryPointDummy
type InputDefinition = EmptyShaderInterfaceDef
type OutputDefinition = EmptyShaderInterfaceDef
sourcefn input(&self) -> &EmptyShaderInterfaceDef
fn input(&self) -> &EmptyShaderInterfaceDef
Returns the input attributes used by the shader stage.
sourcefn output(&self) -> &EmptyShaderInterfaceDef
fn output(&self) -> &EmptyShaderInterfaceDef
Returns the output attributes used by the shader stage.
sourcefn ty(&self) -> GraphicsShaderType
fn ty(&self) -> GraphicsShaderType
Returns the type of shader.
impl Copy for EmptyEntryPointDummy
Auto Trait Implementations
impl RefUnwindSafe for EmptyEntryPointDummy
impl Send for EmptyEntryPointDummy
impl Sync for EmptyEntryPointDummy
impl Unpin for EmptyEntryPointDummy
impl UnwindSafe for EmptyEntryPointDummy
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.