#ifndef skgpu_DawnUtilsPriv_DEFINED
#define skgpu_DawnUtilsPriv_DEFINED
#include "include/core/SkTextureCompressionType.h"
#include "src/gpu/SkSLToBackend.h"
#include "src/sksl/codegen/SkSLWGSLCodeGenerator.h"
#include "webgpu/webgpu_cpp.h"
namespace SkSL {
enum class ProgramKind : int8_t;
struct ProgramInterface;
struct ProgramSettings;
struct ShaderCaps;
}
namespace skgpu {
class ShaderErrorHandler;
inline bool SkSLToWGSL(const SkSL::ShaderCaps* caps,
const std::string& sksl,
SkSL::ProgramKind programKind,
const SkSL::ProgramSettings& settings,
std::string* wgsl,
SkSL::ProgramInterface* outInterface,
ShaderErrorHandler* errorHandler) { … }
namespace graphite {
class DawnSharedContext;
size_t DawnFormatBytesPerBlock(wgpu::TextureFormat format);
SkTextureCompressionType DawnFormatToCompressionType(wgpu::TextureFormat format);
uint32_t DawnFormatChannels(wgpu::TextureFormat format);
}
}
#endif