Hymn to Beauty
C++ 3D Engine
WebGPU.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#if WEBGPU_BACKEND_DAWN
4
#include <dawn/webgpu.h>
5
#endif
6
7
#if WEBGPU_BACKEND_WGPU
8
#include <wgpu.h>
9
10
#define wgpuInstanceRelease wgpuInstanceDrop
11
#define wgpuSurfaceRelease wgpuSurfaceDrop
12
#define wgpuAdapterRelease wgpuAdapterDrop
13
#define wgpuDeviceRelease wgpuDeviceDrop
14
#define wgpuSwapChainRelease wgpuSwapChainDrop
15
#define wgpuBufferRelease wgpuBufferDrop
16
#define wgpuBindGroupRelease wgpuBindGroupDrop
17
#define wgpuBindGroupLayoutRelease wgpuBindGroupLayoutDrop
18
#define wgpuCommandEncoderRelease wgpuCommandEncoderDrop
19
#define wgpuCommandBufferRelease wgpuCommandBufferDrop
20
#define wgpuRenderPassEncoderRelease wgpuRenderPassEncoderDrop
21
#define wgpuComputePassEncoderRelease wgpuComputePassEncoderDrop
22
#define wgpuShaderModuleRelease wgpuShaderModuleDrop
23
#define wgpuPipelineLayoutRelease wgpuPipelineLayoutDrop
24
#define wgpuRenderPipelineRelease wgpuRenderPipelineDrop
25
#define wgpuComputePipelineRelease wgpuComputePipelineDrop
26
#define wgpuTextureRelease wgpuTextureDrop
27
#define wgpuTextureViewRelease wgpuTextureViewDrop
28
#define wgpuSamplerRelease wgpuSamplerDrop
29
30
inline
void
wgpuDeviceTick(WGPUDevice device) {
31
wgpuDevicePoll(device,
false
,
nullptr
);
32
}
33
#endif
src
Video
LowLevelRenderer
WebGPU
WebGPU.hpp
Generated by
1.9.2