diff options
Diffstat (limited to 'cnn_v3/shaders/cnn_v3_common.wgsl')
| -rw-r--r-- | cnn_v3/shaders/cnn_v3_common.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cnn_v3/shaders/cnn_v3_common.wgsl b/cnn_v3/shaders/cnn_v3_common.wgsl index 54b0f3d..dbaf1b1 100644 --- a/cnn_v3/shaders/cnn_v3_common.wgsl +++ b/cnn_v3/shaders/cnn_v3_common.wgsl @@ -12,7 +12,7 @@ fn get_w(base: u32, idx: u32) -> f32 { } // Unpack 8 f16 channels from an rgba32uint texel (pack2x16float layout: -// u32[0]=ch0|ch1, u32[1]=ch2|ch3, u32[2]=ch4|ch5, u32[3]=ch6|ch7) +// u32[0]: ch0 in low 16 bits, ch1 in high 16 bits; same for u32[1-3]) fn unpack_8ch(tex: texture_2d<u32>, coord: vec2i) -> array<f32, 8> { let t = textureLoad(tex, coord, 0); let v0 = unpack2x16float(t.x); |
