[][src]Trait vulkano::pipeline::shader::ShaderInterfaceDefMatch

pub unsafe trait ShaderInterfaceDefMatch<I>: ShaderInterfaceDef where
    I: ShaderInterfaceDef
{ fn matches(&self, other: &I) -> Result<(), ShaderInterfaceMismatchError>; }

Extension trait for ShaderInterfaceDef that specifies that the interface is potentially compatible with another one.

Required methods

fn matches(&self, other: &I) -> Result<(), ShaderInterfaceMismatchError>

Returns Ok if the two definitions match.

Loading content...


impl<T, I> ShaderInterfaceDefMatch<I> for T where
    T: ShaderInterfaceDef,
    I: ShaderInterfaceDef

Loading content...