4#ifndef vtkWebGPUComputeRenderBuffer_h
5#define vtkWebGPUComputeRenderBuffer_h
7#include "vtkRenderingWebGPUModule.h"
11VTK_ABI_NAMESPACE_BEGIN
43 void SetWebGPUBuffer(wgpu::Buffer buffer) { this->wgpuBuffer = buffer; };
44 wgpu::Buffer GetWebGPUBuffer() {
return this->wgpuBuffer; };
68 vtkGetMacro(RenderUniformsBinding, uint32_t);
69 vtkSetMacro(RenderUniformsBinding, uint32_t);
77 vtkGetMacro(RenderUniformsGroup, uint32_t);
78 vtkSetMacro(RenderUniformsGroup, uint32_t);
86 vtkGetMacro(RenderBufferOffset, uint32_t);
87 vtkSetMacro(RenderBufferOffset, uint32_t);
95 vtkGetMacro(RenderBufferElementCount, uint32_t);
96 vtkSetMacro(RenderBufferElementCount, uint32_t);
112 wgpu::Buffer wgpuBuffer =
nullptr;
125 uint32_t RenderUniformsGroup = -1;
126 uint32_t RenderUniformsBinding = -1;
131 uint32_t RenderBufferOffset = -1;
132 uint32_t RenderBufferElementCount = -1;
a simple class to control print indentation
Represents the set of parameters that will be used to create a compute shader buffer on the device wh...
This class manages the creation/deletion/recreation/resizing/updating of compute buffers used by a co...
A compute pass is an abstraction for offloading computation from the CPU onto the GPU using WebGPU co...
Render buffers are returned by calls to vtkWebGPUPolyDataMapper::AcquirePointAttributeComputeRenderBu...
static vtkWebGPUComputeRenderBuffer * New()
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.