13 return SkStringPrintf(
"format=0x%08X,viewFormat=0x%08X,usage=0x%08X,aspect=0x%08X,slice=%u",
14 static_cast<unsigned int>(
fFormat),
16 static_cast<unsigned int>(
fUsage),
17 static_cast<unsigned int>(
fAspect),
24 wgpuTextureGetSampleCount(
texture),
26 static_cast<wgpu::TextureFormat
>(wgpuTextureGetFormat(
texture)),
27 static_cast<wgpu::TextureFormat
>(wgpuTextureGetFormat(
texture)),
29 wgpu::TextureAspect::All, 0);
37 info.fSampleCount = sampleCount;
38 info.fMipmapped = mipmapped;
45#if !defined(__EMSCRIPTEN__)
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
DawnTextureInfo DawnTextureInfoFromWGPUTexture(WGPUTexture texture)
DawnTextureInfo DawnTextureSpecToTextureInfo(const DawnTextureSpec &dawnSpec, uint32_t sampleCount, Mipmapped mipmapped)
wgpu::TextureUsage fUsage
wgpu::TextureAspect fAspect
wgpu::YCbCrVkDescriptor fYcbcrVkDescriptor
wgpu::TextureFormat fFormat
SkString toString() const
wgpu::TextureFormat fViewFormat