载入中...
搜索中...
未找到
WebGpuGpgpu.h 文件参考
#include "gpgpu/ComputeShader.h"
#include "gpgpu/GpuBuffer.h"
#include <webgpu/webgpu_cpp.h>
#include <array>
#include <cstdint>
#include <string>

浏览源代码.

class  eve::gpgpu::WebGpuComputeShader
 Compute program for the WebGPU backend. Accepts WGSL source; GLSL/SPIR-V input is rejected (browsers only accept WGSL at runtime). 更多...
 
class  eve::gpgpu::WebGpuGpuBuffer
 Storage / staging buffer for the WebGPU backend. 更多...
 

命名空间

namespace  eve
 
namespace  eve::gpgpu
 

函数

bool eve::gpgpu::webgpuGpgpuReady ()
 
WebGpuComputeShadereve::gpgpu::webgpuNewShaderFromWgsl (const std::string &wgsl)
 
WebGpuComputeShadereve::gpgpu::webgpuNewShaderFromSpirv (const std::vector< uint32_t > &spv)
 
WebGpuGpuBuffereve::gpgpu::webgpuNewBuffer (int byteSize, const std::string &usage)
 
void eve::gpgpu::webgpuDispatch (ComputeShader *shader, int groupsX, int groupsY, int groupsZ)