Cogs.Core
Cogs.Rendering
Source
WebGPU
CommonWebGPU.h
1
#pragma once
2
3
#ifdef EMSCRIPTEN
4
5
// Emscripten webgpu.h
6
// Found under Cogs/External/[PLATFORM]/include/webgpu/
7
// and
8
// Found under Cogs.js\Build\emdawnwebgpu\EMDAWNWEBGPU_VERSION\emdawnwebgpu_pkg\webgpu\include\webgpu\webgpu.h
9
#include "webgpu/webgpu.h"
10
11
#else
12
13
// Dawn webgpu.h
14
// Found under Cogs/External/[PLATFORM]/include/dawn/
15
// (Generated by dawn in dawn/Build/gen/include/dawn)
16
#include "dawn/webgpu.h"
17
18
#endif
19
20
// See Foundation/StringViewFormat.h
21
// Example usage: printf("%.*s", WGPUStringViewFormat(sv));
22
#define WGPUStringViewFormat(sv) static_cast<int>(sv.length), sv.data
Generated by
1.9.6