4 #ifndef vtkWebGPUComputeRenderBuffer_h
5 #define vtkWebGPUComputeRenderBuffer_h
7 #include "vtkRenderingWebGPUModule.h"
11 VTK_ABI_NAMESPACE_BEGIN
46 void SetWebGPUBuffer(wgpu::Buffer buffer) { this->wgpuBuffer = buffer; };
47 wgpu::Buffer GetWebGPUBuffer() {
return this->wgpuBuffer; };
71 vtkGetMacro(RenderUniformsBinding, uint32_t);
72 vtkSetMacro(RenderUniformsBinding, uint32_t);
80 vtkGetMacro(RenderUniformsGroup, uint32_t);
81 vtkSetMacro(RenderUniformsGroup, uint32_t);
89 vtkGetMacro(RenderBufferOffset, uint32_t);
90 vtkSetMacro(RenderBufferOffset, uint32_t);
98 vtkGetMacro(RenderBufferElementCount, uint32_t);
99 vtkSetMacro(RenderBufferElementCount, uint32_t);
115 wgpu::Buffer wgpuBuffer =
nullptr;
120 vtkWebGPUPolyDataMapper::PointDataAttributes::POINT_UNDEFINED;
122 vtkWebGPUPolyDataMapper::CellDataAttributes::CELL_UNDEFINED;
128 uint32_t RenderUniformsGroup = UINT32_MAX;
129 uint32_t RenderUniformsBinding = UINT32_MAX;
134 uint32_t RenderBufferOffset = UINT32_MAX;
135 uint32_t RenderBufferElementCount = UINT32_MAX;
143 VTK_ABI_NAMESPACE_END
Represents the set of parameters that will be used to create a compute shader buffer on the device wh...
static vtkWebGPUComputeBuffer * New()
a simple class to control print indentation
This class manages the creation/deletion/recreation/resizing/updating of compute buffers used by a co...
Render buffers are returned by calls to vtkWebGPUPolyDataMapper::AcquirePointAttributeComputeRenderBu...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
PointDataAttributes
All the attributes supported by the point data buffer.
CellDataAttributes
All the attributes supported by the cell data buffer.
A compute pass is an abstraction for offloading computation from the CPU onto the GPU using WebGPU co...