pub fn gaussian_blur_gpu(
runtime: &WgpuRuntime,
source: &GpuImage,
options: GpuGaussianBlurOptions,
) -> SpatialResult<GpuImage>Expand description
Applies a separable integer Gaussian blur to 1..=4 resident logical channels.
Matches spatialrust_vision::gaussian_blur_u8 kernel quantization and final
half-up rounding: Q8 for 3/5 kernels, Q15 for both axes when either is 7.
Both weighted passes execute in one submission. Q8 multi-channel calls use
4ceil(channels/2) scratch bytes per pixel; other calls use 4channels.
There is no intermediate rounding, payload transfer,
readback, host wait or CPU fallback. Source/output ownership and metadata are
preserved; unsupported dimensions or device capacities return an error.