#include "dawn/utils/TextureUtils.h"
namespace dawn::utils {
bool TextureFormatSupportsStorageTexture(wgpu::TextureFormat format,
const wgpu::Device& device,
bool isCompatibilityMode) { … }
bool IsBCTextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsETC2TextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsASTCTextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsCompressedTextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsDepthOnlyFormat(wgpu::TextureFormat textureFormat) { … }
bool IsDepthOrStencilFormat(wgpu::TextureFormat textureFormat) { … }
bool IsRenderableFormat(const wgpu::Device& device, wgpu::TextureFormat textureFormat) { … }
bool TextureFormatSupportsMultisampling(const wgpu::Device& device,
wgpu::TextureFormat textureFormat) { … }
bool TextureFormatSupportsResolveTarget(const wgpu::Device& device,
wgpu::TextureFormat textureFormat) { … }
bool TextureFormatSupportsReadWriteStorageTexture(wgpu::TextureFormat format) { … }
bool IsStencilOnlyFormat(wgpu::TextureFormat textureFormat) { … }
#ifndef __EMSCRIPTEN__
bool IsUnorm16TextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsSnorm16TextureFormat(wgpu::TextureFormat textureFormat) { … }
bool IsMultiPlanarFormat(wgpu::TextureFormat textureFormat) { … }
uint32_t GetMultiPlaneTextureBitDepth(wgpu::TextureFormat textureFormat) { … }
uint32_t GetMultiPlaneTextureNumPlanes(wgpu::TextureFormat textureFormat) { … }
uint32_t GetMultiPlaneTextureBytesPerElement(wgpu::TextureFormat textureFormat, size_t plane) { … }
SubsamplingFactor GetMultiPlaneTextureSubsamplingFactor(wgpu::TextureFormat textureFormat,
size_t plane) { … }
#endif
uint32_t GetTexelBlockSizeInBytes(wgpu::TextureFormat textureFormat) { … }
uint32_t GetTextureFormatBlockWidth(wgpu::TextureFormat textureFormat) { … }
uint32_t GetTextureFormatBlockHeight(wgpu::TextureFormat textureFormat) { … }
const char* GetWGSLColorTextureComponentType(wgpu::TextureFormat textureFormat) { … }
uint32_t GetTextureComponentCount(wgpu::TextureFormat textureFormat) { … }
const char* GetWGSLImageFormatQualifier(wgpu::TextureFormat textureFormat) { … }
wgpu::TextureDimension ViewDimensionToTextureDimension(const wgpu::TextureViewDimension dimension) { … }
}