Skip to main content

compute_pipeline

Function compute_pipeline 

Source
pub fn compute_pipeline(
    rd: &mut Gd<RenderingDevice>,
    sink: &Arc<dyn RidSink>,
    spirv: &[u8],
    name: &str,
) -> Option<(RdShader, RdPipeline)>
Expand description

Compute shader + pipeline from SPIR-V bytes produced by build.rs.

On a pipeline-create failure the early return drops the RdShader, which frees the shader through sink — no manual cleanup.