/// Returns a graphics pipeline which draws the normals of primitive's surfaces as a color
Returns a graphics pipeline which draws the normals of primitive's surfaces as a color
Returns a graphics pipeline which draws the normals of primitive ' s surfaces as a color
pub fn normal(dev: &Dev, pass: &Pass, width: u32, height: u32) -> Self {
        let shader = ShaderModule::main(&dev.device);
        let vs = CString::new("present_vs").expect("Failed to create entrypoint");
        let fs = CString::new("normal_fs").expect("Failed to create entrypoint");
        let dynamic_state = vk::PipelineDynamicStateCreateInfo::default();
        Self::new::<PresentVertex>(
            dev,
            shader.get_vert(&vs),
            shader.get_frag(&fs),
            vk::PrimitiveTopology::TRIANGLE_LIST,
            &dynamic_state,
            pass,
            width,
            height,
            1,
        )
    }
pub fn normal ( dev : & Dev , pass : & Pass , width : u32 , height : u32 ) -> Self { let shader = ShaderModule :: main ( & dev . device ) ; let vs = CString :: new ( " " ) . expect ( " " ) ; let fs = CString :: new ( " " ) . expect ( " " ) ; let dynamic_state = vk :: PipelineDynamicStateCreateInfo :: default ( ) ; Self :: new :: < PresentVertex > ( dev , shader . get_vert ( & vs ) , shader . get_frag ( & fs ) , vk :: PrimitiveTopology :: TRIANGLE_LIST , & dynamic_state , pass , width , height , 1 , ) }
Returns a graphics pipeline which draws the normals of primitive's surfaces as a color
Returns a graphics pipeline which draws the normals of primitive ' s surfaces as a color
dev
&Dev
pass
&Pass
width
u32
height
u32