4#ifndef vtkWebGPUComputeRenderBuffer_h
5#define vtkWebGPUComputeRenderBuffer_h
7#include "vtkRenderingWebGPUModule.h"
11VTK_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;
128 uint32_t RenderUniformsGroup = -1;
129 uint32_t RenderUniformsBinding = -1;
134 uint32_t RenderBufferOffset = -1;
135 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()
vtkWebGPUComputeRenderBuffer()
~vtkWebGPUComputeRenderBuffer() override
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.