5#include <webgpu/webgpu.hpp>
14 static wgpu::Device
GetDevice(wgpu::RequiredLimits limits);
17 static std::string
ReadFile(std::filesystem::path
const &path);
19 static wgpu::ShaderModule
23 const void *data,
size_t size,
24 wgpu::BufferUsageFlags usage);
26 static void ReadBuffer(wgpu::Device &device, wgpu::Buffer
const &buffer,
27 size_t buffer_offset,
void *data,
size_t size);
31 RequestAdapterSync(wgpu::Instance instance,
32 wgpu::RequestAdapterOptions
const *options);
35 RequestDeviceSync(wgpu::Adapter adapter,
36 wgpu::DeviceDescriptor
const *descriptor);
Definition resource_manager.hpp:11
static wgpu::Buffer CreateBufferWithData(wgpu::Device &device, const void *data, size_t size, wgpu::BufferUsageFlags usage)
Definition resource_manager.cpp:65
static wgpu::Device GetDevice()
Definition resource_manager.cpp:9
static void ReadBuffer(wgpu::Device &device, wgpu::Buffer const &buffer, size_t buffer_offset, void *data, size_t size)
Definition resource_manager.cpp:82
static std::string ReadFile(std::filesystem::path const &path)
Definition resource_manager.cpp:34
static wgpu::ShaderModule CreateShaderModule(wgpu::Device &device, std::string const &shader_source)
Definition resource_manager.cpp:49
shader_source
Definition dem.wgsl.h:5
Definition bond_entry.hpp:7