#include "include/core/SkString.h"
#include "include/gpu/graphite/dawn/DawnTypes.h"
#include "src/gpu/graphite/BackendTexturePriv.h"
#include "src/gpu/graphite/dawn/DawnGraphiteTypesPriv.h"
#include "src/gpu/graphite/dawn/DawnUtilsPriv.h"
#include "webgpu/webgpu_cpp.h"
#include <cstdint>
namespace skgpu::graphite {
class DawnBackendTextureData final : public BackendTextureData { … };
static const DawnBackendTextureData* get_and_cast_data(const BackendTexture& tex) { … }
static DawnTextureInfo strip_copy_usage(const DawnTextureInfo& info) { … }
namespace BackendTextures {
BackendTexture MakeDawn(WGPUTexture texture) { … }
BackendTexture MakeDawn(SkISize planeDimensions, const DawnTextureInfo& info, WGPUTexture texture) { … }
BackendTexture MakeDawn(SkISize dimensions,
const DawnTextureInfo& info,
WGPUTextureView textureView) { … }
WGPUTexture GetDawnTexturePtr(const BackendTexture& tex) { … }
WGPUTextureView GetDawnTextureViewPtr(const BackendTexture& tex) { … }
}
}