Hymn to Beauty
C++ 3D Engine
WebGPUComputePipeline.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/ComputePipeline.hpp"
4
5#include "WebGPU.hpp"
6
7namespace Video {
8
9class ShaderProgram;
10class WebGPUShaderProgram;
11
14 public:
16
20 explicit WebGPUComputePipeline(WGPUDevice device, const ShaderProgram* shaderProgram);
21
24
26
29 WGPUComputePipeline GetComputePipeline() const;
30
32
36
37 private:
38 WebGPUComputePipeline(const WebGPUComputePipeline& other) = delete;
39
40 const WebGPUShaderProgram* webGPUShaderProgram;
41
42 WGPUPipelineLayout pipelineLayout;
43 WGPUComputePipeline pipeline;
44};
45
46}
A compute pipeline.
Definition: ComputePipeline.hpp:11
A shader program.
Definition: ShaderProgram.hpp:11
WebGPU implementation of ComputePipeline.
Definition: WebGPUComputePipeline.hpp:13
const WebGPUShaderProgram * GetShaderProgram() const
Get the Vulkan shader program.
Definition: WebGPUComputePipeline.cpp:51
WGPUComputePipeline GetComputePipeline() const
Get the WebGPU pipeline.
Definition: WebGPUComputePipeline.cpp:47
~WebGPUComputePipeline() final
Destructor.
Definition: WebGPUComputePipeline.cpp:42
WebGPUComputePipeline(WGPUDevice device, const ShaderProgram *shaderProgram)
Create new WebGPU compute pipeline.
Definition: WebGPUComputePipeline.cpp:12
WebGPU implementation of ShaderProgram.
Definition: WebGPUShaderProgram.hpp:16
Definition: Editor.hpp:18