Storage / staging buffer for the WebGPU backend. 更多...
#include <WebGpuGpgpu.h>
Public 成员函数 | |
| WebGpuGpuBuffer ()=default | |
| Constructs a WebGpuGpuBuffer. | |
| ~WebGpuGpuBuffer () override | |
| Releases WebGpuGpuBuffer resources. | |
| int | getSize () const override |
| Byte length of the owned buffer. | |
| std::string | getUsage () const override |
| Returns the usage. | |
| void | writeData (data::ByteData *data, int dstOffset=0) override |
| Writes data. | |
| data::ByteData * | readData (int srcOffset=0, int size=-1) override |
| Reads data. | |
| void | writeFloat32 (int floatIndex, float value) override |
| Writes float 32. | |
| float | readFloat32 (int floatIndex) override |
| Reads float 32. | |
| void | fillFloat32 (float value) override |
| Fill float 32. | |
| void | writeFloat32s (const float *data, int count, int startIndex=0) override |
| Writes float 32 s. | |
| void | readFloat32s (float *out, int count, int startIndex=0) const override |
| Reads float 32 s. | |
| void | uploadBytes (const void *src, uint64_t nbytes, uint64_t dstOffset=0) override |
| Uploads bytes. | |
| void | downloadBytes (void *dst, uint64_t nbytes, uint64_t srcOffset=0) const override |
| Downloads bytes. | |
| GpuResidentBufferView | residentView () const override |
| Resident view. | |
Public 成员函数 继承自 eve::gpgpu::GpuBuffer | |
| GpuBuffer ()=default | |
| Constructs a GpuBuffer. | |
| virtual | ~GpuBuffer ()=default |
| Releases GpuBuffer resources. | |
| GpuBuffer (const GpuBuffer &)=delete | |
| GpuBuffer & | operator= (const GpuBuffer &)=delete |
Public 属性 | |
| wgpu::Buffer | buffer |
| uint64_t | size_ = 0 |
| std::string | usage_ |
详细描述
Storage / staging buffer for the WebGPU backend.
在文件 WebGpuGpgpu.h 第 53 行定义.
构造及析构函数说明
◆ WebGpuGpuBuffer()
|
default |
Constructs a WebGpuGpuBuffer.
◆ ~WebGpuGpuBuffer()
|
overridedefault |
Releases WebGpuGpuBuffer resources.
成员函数说明
◆ downloadBytes()
|
overridevirtual |
Downloads bytes.
在文件 WebGpuGpgpu.cpp 第 300 行定义.
引用了 buffer, size_ , 以及 usage_.
被这些函数引用 readData(), readFloat32() , 以及 readFloat32s().
◆ fillFloat32()
|
overridevirtual |
◆ getSize()
|
inlineoverridevirtual |
◆ getUsage()
|
inlineoverridevirtual |
◆ readData()
|
overridevirtual |
◆ readFloat32()
|
overridevirtual |
◆ readFloat32s()
|
overridevirtual |
◆ residentView()
|
overridevirtual |
◆ uploadBytes()
|
overridevirtual |
Uploads bytes.
在文件 WebGpuGpgpu.cpp 第 293 行定义.
被这些函数引用 fillFloat32(), writeData(), writeFloat32() , 以及 writeFloat32s().
◆ writeData()
|
overridevirtual |
◆ writeFloat32()
|
overridevirtual |
◆ writeFloat32s()
|
overridevirtual |
类成员变量说明
◆ buffer
| wgpu::Buffer eve::gpgpu::WebGpuGpuBuffer::buffer |
在文件 WebGpuGpgpu.h 第 89 行定义.
被这些函数引用 downloadBytes(), residentView(), uploadBytes(), eve::gpgpu::webgpuDispatch() , 以及 eve::gpgpu::webgpuSequenceSubmitAsync().
◆ size_
| uint64_t eve::gpgpu::WebGpuGpuBuffer::size_ = 0 |
在文件 WebGpuGpgpu.h 第 90 行定义.
被这些函数引用 downloadBytes(), fillFloat32(), getSize(), readData(), residentView(), uploadBytes() , 以及 eve::gpgpu::webgpuSequenceSubmitAsync().
◆ usage_
| std::string eve::gpgpu::WebGpuGpuBuffer::usage_ |
在文件 WebGpuGpgpu.h 第 91 行定义.
被这些函数引用 downloadBytes() , 以及 getUsage().
该类的文档由以下文件生成:
- src/modules/gpgpu/webgpu/WebGpuGpgpu.h
- src/modules/gpgpu/webgpu/WebGpuGpgpu.cpp
Public 成员函数 继承自