Skip to main content

gpu_create_pipeline

Function gpu_create_pipeline 

Source
pub fn gpu_create_pipeline(
    shader: u32,
    vertex_entry: &str,
    fragment_entry: &str,
) -> u32
Expand description

Create a render pipeline from a shader. Returns a handle (0 = failure).

vertex_entry and fragment_entry are the WGSL function names.