Lines Matching refs:TextureFormat
10 size_t GrDawnBytesPerBlock(wgpu::TextureFormat format) { in GrDawnBytesPerBlock()
12 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnBytesPerBlock()
13 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnBytesPerBlock()
15 case wgpu::TextureFormat::R8Unorm: in GrDawnBytesPerBlock()
17 case wgpu::TextureFormat::Depth24PlusStencil8: in GrDawnBytesPerBlock()
24 int GrDawnFormatStencilBits(wgpu::TextureFormat format) { in GrDawnFormatStencilBits()
26 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnFormatStencilBits()
27 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnFormatStencilBits()
28 case wgpu::TextureFormat::R8Unorm: in GrDawnFormatStencilBits()
30 case wgpu::TextureFormat::Depth24PlusStencil8: in GrDawnFormatStencilBits()
37 bool GrDawnFormatIsRenderable(wgpu::TextureFormat format) { in GrDawnFormatIsRenderable()
43 bool GrColorTypeToDawnFormat(GrColorType ct, wgpu::TextureFormat* format) { in GrColorTypeToDawnFormat()
46 *format = wgpu::TextureFormat::RGBA8Unorm; in GrColorTypeToDawnFormat()
49 *format = wgpu::TextureFormat::BGRA8Unorm; in GrColorTypeToDawnFormat()
53 *format = wgpu::TextureFormat::R8Unorm; in GrColorTypeToDawnFormat()
60 bool GrDawnFormatToGrColorType(wgpu::TextureFormat format, GrColorType* colorType) { in GrDawnFormatToGrColorType()
62 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnFormatToGrColorType()
65 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnFormatToGrColorType()
68 case wgpu::TextureFormat::R8Unorm: in GrDawnFormatToGrColorType()
82 const char* GrDawnFormatToStr(wgpu::TextureFormat format) { in GrDawnFormatToStr()
84 case wgpu::TextureFormat::RGBA8Unorm: in GrDawnFormatToStr()
86 case wgpu::TextureFormat::BGRA8Unorm: in GrDawnFormatToStr()
88 case wgpu::TextureFormat::R8Unorm: in GrDawnFormatToStr()
90 case wgpu::TextureFormat::Depth24PlusStencil8: in GrDawnFormatToStr()