Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
DawnGraphiteUtilsPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef skgpu_graphite_DawnGraphiteUtilsPriv_DEFINED
9#define skgpu_graphite_DawnGraphiteUtilsPriv_DEFINED
10
15
16#include "webgpu/webgpu_cpp.h" // NO_G3_REWRITE
17
18namespace SkSL {
19class Compiler;
20struct ProgramSettings;
21}
22
23namespace skgpu {
24class ShaderErrorHandler;
25}
26
27namespace skgpu::graphite {
28class DawnSharedContext;
29
30bool DawnFormatIsDepthOrStencil(wgpu::TextureFormat);
31bool DawnFormatIsDepth(wgpu::TextureFormat);
32bool DawnFormatIsStencil(wgpu::TextureFormat);
33
35
36bool DawnCompileWGSLShaderModule(const DawnSharedContext* sharedContext,
37 const char* label,
38 const std::string& wgsl,
39 wgpu::ShaderModule* module,
40 ShaderErrorHandler*);
41
42} // namespace skgpu::graphite
43
44#endif // skgpu_graphite_DawnGraphiteUtilsPriv_DEFINED
wgpu::TextureFormat DawnDepthStencilFlagsToFormat(SkEnumBitMask< DepthStencilFlags > mask)
bool DawnFormatIsDepthOrStencil(wgpu::TextureFormat format)
bool DawnFormatIsDepth(wgpu::TextureFormat format)
bool DawnCompileWGSLShaderModule(const DawnSharedContext *sharedContext, const char *label, const std::string &wgsl, wgpu::ShaderModule *module, ShaderErrorHandler *errorHandler)
bool DawnFormatIsStencil(wgpu::TextureFormat format)