NetDEM v1.0
Loading...
Searching...
No Matches
netdem::webgpu::ResourceManager Class Reference

#include <resource_manager.hpp>

Static Public Member Functions

static wgpu::Device GetDevice ()
 
static wgpu::Device GetDevice (wgpu::RequiredLimits limits)
 
static std::string ReadFile (std::filesystem::path const &path)
 
static wgpu::ShaderModule CreateShaderModule (wgpu::Device &device, std::string const &shader_source)
 
static wgpu::Buffer CreateBufferWithData (wgpu::Device &device, const void *data, size_t size, wgpu::BufferUsageFlags usage)
 
static void ReadBuffer (wgpu::Device &device, wgpu::Buffer const &buffer, size_t buffer_offset, void *data, size_t size)
 

Member Function Documentation

◆ CreateBufferWithData()

Buffer ResourceManager::CreateBufferWithData ( wgpu::Device & device,
const void * data,
size_t size,
wgpu::BufferUsageFlags usage )
static

◆ CreateShaderModule()

ShaderModule ResourceManager::CreateShaderModule ( wgpu::Device & device,
std::string const & shader_source )
static

◆ GetDevice() [1/2]

Device ResourceManager::GetDevice ( )
static

◆ GetDevice() [2/2]

Device ResourceManager::GetDevice ( wgpu::RequiredLimits limits)
static

◆ ReadBuffer()

void ResourceManager::ReadBuffer ( wgpu::Device & device,
wgpu::Buffer const & buffer,
size_t buffer_offset,
void * data,
size_t size )
static

◆ ReadFile()

std::string ResourceManager::ReadFile ( std::filesystem::path const & path)
static

The documentation for this class was generated from the following files: