84 void ReleaseDeviceResources();
94 void UpdateTableLayout();
101 bool VolumesCanOverlap()
const;
103 bool AllBlendModesMatch(
int& outMode)
const;
107 std::vector<vtkWebGPUVolumeRayCastContribution> Contributions;
117 std::vector<LayerState> Layers;
118 std::vector<LayerState> CellLayers;
121 std::map<const void*, vtkMTimeType> BrickContent;
123 std::vector<std::uint32_t> PageOffsets;
124 std::vector<std::uint32_t> CellOffsets;
126 std::vector<std::array<int, 3>> PageDimensions;
129 std::vector<std::array<double, 16>> VolumeMatrices;
136 bool SkipEmptyBricks =
false;
137 float EmptyThreshold = 0.0f;
139 vtkWebGPU::Buffer GlobalUniformBuffer;
140 vtkWebGPU::Buffer VolumeParamsBuffer;
141 vtkWebGPU::Buffer PageBuffer;
142 std::size_t PageBufferElements = 0;
144 std::vector<unsigned char> PageTable;
148 vtkWebGPU::Buffer CellBuffer;
149 std::size_t CellBufferElements = 0;
151 vtkWebGPU::Texture ColorTransferFunctions;
152 vtkWebGPU::TextureView ColorTransferFunctionsView;
153 vtkWebGPU::Texture OpacityTransferFunctions;
154 vtkWebGPU::TextureView OpacityTransferFunctionsView;
155 vtkWebGPU::Texture GradientTransferFunctions;
156 vtkWebGPU::TextureView GradientTransferFunctionsView;
158 vtkWebGPU::Texture Transfer2DFunctions;
159 vtkWebGPU::TextureView Transfer2DFunctionsView;
160 std::vector<LayerState> Transfer2DLayers;
164 vtkWebGPU::Texture LabelTransferFunctions;
165 vtkWebGPU::TextureView LabelTransferFunctionsView;
166 std::vector<LayerState> LabelLayers;
168 vtkWebGPU::Sampler TransferFunctionSampler;
172 vtkWebGPU::TextureView OpaqueDepthView;
177 WGPUDevice DeviceIdentity =
nullptr;
179 vtkWebGPU::BindGroupLayout BindGroupLayout;
180 vtkWebGPU::BindGroup BindGroup;
181 vtkWebGPU::RenderPipeline Pipeline;
182 WGPUTextureFormat PipelineColorFormat = WGPUTextureFormat_Undefined;
183 bool PipelineRenderToImage =
false;
185 bool DepthAvailable =
false;
187 float ViewportRectangle[4] = { 0.0f, 0.0f, 1.0f, 1.0f };
188 bool DrawFullScreen =
false;