Hymn to Beauty
C++ 3D Engine
Video::WebGPUComputePipeline Class Reference

WebGPU implementation of ComputePipeline. More...

#include <WebGPUComputePipeline.hpp>

Inheritance diagram for Video::WebGPUComputePipeline:
Video::ComputePipeline

Public Member Functions

 WebGPUComputePipeline (WGPUDevice device, const ShaderProgram *shaderProgram)
 Create new WebGPU compute pipeline. More...
 
 ~WebGPUComputePipeline () final
 Destructor. More...
 
WGPUComputePipeline GetComputePipeline () const
 Get the WebGPU pipeline. More...
 
const WebGPUShaderProgramGetShaderProgram () const
 Get the Vulkan shader program. More...
 
- Public Member Functions inherited from Video::ComputePipeline
 ComputePipeline ()
 Create a new compute pipeline. More...
 
virtual ~ComputePipeline ()
 Destructor. More...
 

Detailed Description

WebGPU implementation of ComputePipeline.

Constructor & Destructor Documentation

◆ WebGPUComputePipeline()

Video::WebGPUComputePipeline::WebGPUComputePipeline ( WGPUDevice  device,
const ShaderProgram shaderProgram 
)
explicit

Create new WebGPU compute pipeline.

Parameters
deviceThe WebGPU device.
shaderProgramThe shader program to use.

◆ ~WebGPUComputePipeline()

Video::WebGPUComputePipeline::~WebGPUComputePipeline ( )
final

Destructor.

Member Function Documentation

◆ GetComputePipeline()

WGPUComputePipeline Video::WebGPUComputePipeline::GetComputePipeline ( ) const

Get the WebGPU pipeline.

Returns
The internal WebGPU pipeline.

◆ GetShaderProgram()

const WebGPUShaderProgram * Video::WebGPUComputePipeline::GetShaderProgram ( ) const

Get the Vulkan shader program.

Returns
The shader program.

The documentation for this class was generated from the following files: