23 case wgpu::TextureFormat::RGBA8Unorm:
return 4;
24 case wgpu::TextureFormat::BGRA8Unorm:
return 4;
25 case wgpu::TextureFormat::R8Unorm:
return 1;
26 case wgpu::TextureFormat::RGBA16Float:
return 8;
27 case wgpu::TextureFormat::R16Float:
return 2;
28 case wgpu::TextureFormat::RG8Unorm:
return 2;
29 case wgpu::TextureFormat::RGB10A2Unorm:
return 4;
30 case wgpu::TextureFormat::RG16Float:
return 4;
35 case wgpu::TextureFormat::Stencil8:
return 4;
36 case wgpu::TextureFormat::Depth32Float:
return 4;
37 case wgpu::TextureFormat::Depth32FloatStencil8:
return 5;
38 case wgpu::TextureFormat::Depth24PlusStencil8:
return 5;
40#if !defined(__EMSCRIPTEN__)
41 case wgpu::TextureFormat::R16Unorm:
return 2;
42 case wgpu::TextureFormat::RG16Unorm:
return 4;
68#if !defined(__EMSCRIPTEN__)
uint32_t uint32_t * format