Struct vulkano::shader::ShaderInterface [−][src]
pub struct ShaderInterface { /* fields omitted */ }
Expand description
Type that contains the definition of an interface between two shader stages, or between the outside and a shader stage.
Implementations
Constructs a new ShaderInterface
.
Safety
- Must only provide one entry per location.
- The format of each element must not be larger than 128 bits.
Creates a description of an empty shader interface.
Returns a slice containing the elements of the interface.
Checks whether the interface is potentially compatible with another one.
Returns Ok
if the two interfaces are compatible.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ShaderInterface
impl Send for ShaderInterface
impl Sync for ShaderInterface
impl Unpin for ShaderInterface
impl UnwindSafe for ShaderInterface
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.