VTK: Rendering/WebGPU/vtkWebGPUInternalsShaderModule.h Source File

| VTK 9.3.1

vtkWebGPUInternalsShaderModule.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkWebGPUInternalsShaderModule_h
4 #define vtkWebGPUInternalsShaderModule_h
5
6 #include "vtkRenderingWebGPUModule.h"
7 #include "vtk_wgpu.h"
8
9 #include <string>
10
11 VTK_ABI_NAMESPACE_BEGIN
12 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUInternalsShaderModule
13 {
14 public:
15 static wgpu::ShaderModule CreateFromWGSL(const wgpu::Device& device, const std::string& source);
16 static wgpu::ShaderModule CreateFromSPIRV(const wgpu::Device& device, const uint32_t* code);
17 };
18 VTK_ABI_NAMESPACE_END
19
20 #endif
21 // VTK-HeaderTest-Exclude: vtkWebGPUInternalsShaderModule.h
vtkWebGPUInternalsShaderModule
Definition: vtkWebGPUInternalsShaderModule.h:13
vtkWebGPUInternalsShaderModule::CreateFromSPIRV
static wgpu::ShaderModule CreateFromSPIRV(const wgpu::Device &device, const uint32_t *code)
vtkWebGPUInternalsShaderModule::CreateFromWGSL
static wgpu::ShaderModule CreateFromWGSL(const wgpu::Device &device, const std::string &source)
vtkX3D::string
@ string
Definition: vtkX3D.h:490
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:964
vtk_wgpu.h