VTK  9.4.20241222
vtkWebGPUShaderModuleInternals.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 vtkWebGPUShaderModuleInternals_h
4#define vtkWebGPUShaderModuleInternals_h
5
6#include "vtkRenderingWebGPUModule.h"
7#include "vtk_wgpu.h"
8
9#include <string>
10
11VTK_ABI_NAMESPACE_BEGIN
12class VTKRENDERINGWEBGPU_NO_EXPORT vtkWebGPUShaderModuleInternals
13{
14public:
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};
18VTK_ABI_NAMESPACE_END
19
20#endif
21// VTK-HeaderTest-Exclude: vtkWebGPUShaderModuleInternals.h
static wgpu::ShaderModule CreateFromSPIRV(const wgpu::Device &device, const uint32_t *code)
static wgpu::ShaderModule CreateFromWGSL(const wgpu::Device &device, const std::string &source)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)