Skip to main content

Module gpu_colour_kernel

Module gpu_colour_kernel 

Source
Expand description

P7.4 — GPU colour-projection / gamut batch kernel + CPU oracle. P7.4 — GPU colour-projection / gamut batch kernel + CPU oracle.

Structs§

GpuBufferLayout
Buffer layout specification for the GPU kernel.

Constants§

DIFF_TOLERANCE_U8
Tolerance for CPU vs GPU differential comparison. f32 rounding in the GPU kernel may produce ±1 LSB differences in the 8-bit output.
GPU_COLOUR_KERNEL_WGSL
WGSL shader source for the GPU colour-projection batch kernel.

Functions§

cpu_batch_emf_to_display_gamut_mapped
CPU oracle: process a batch of EMF payloads through the full colour pipeline and produce gamut-mapped 8-bit display RGB.
cpu_batch_emf_to_xyz
CPU oracle: process a batch of EMF payloads and produce XYZ values.
diff_cpu_gpu
Compare CPU oracle output with GPU output.