pygfx.renderers.wgpu.nchannels_from_format¶
- pygfx.renderers.wgpu.nchannels_from_format(format)¶
Return the number of channels from a buffer format.
Channels as in elements per item. I.e. will be 1 and 4 for a grayscale and rgba color buffer, respectively.