Skip to main content

rgb_to_gray_gpu

Function rgb_to_gray_gpu 

Source
pub fn rgb_to_gray_gpu(
    runtime: &WgpuRuntime,
    source: &GpuImage,
) -> SpatialResult<GpuImage>
Expand description

Converts an RGB GpuImage to a gray GpuImage using BT.601 fixed-point luma.

Large images distribute flat workgroups across bounded dispatch rows. Runtime, dimensions and device limits are checked before allocation or pipeline setup.