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

WebGPU implementation of GraphicsPipeline. More...

#include <WebGPUGraphicsPipeline.hpp>

Inheritance diagram for Video::WebGPUGraphicsPipeline:
Video::GraphicsPipeline

Classes

struct  RenderPassDescription
 A description of a render pass. More...
 

Public Member Functions

 WebGPUGraphicsPipeline (WebGPURenderer &renderer, const ShaderProgram *shaderProgram, const Configuration &configuration, const VertexDescription *vertexDescription=nullptr)
 Create new WebGPU graphics pipeline. More...
 
 ~WebGPUGraphicsPipeline () final
 Destructor. More...
 
WGPURenderPipeline GetRenderPipeline (const RenderPassDescription &renderPassDescription)
 Get the WebGPU pipeline for a given render pass. More...
 
const WebGPUShaderProgramGetShaderProgram () const
 Get the shader program. More...
 
- Public Member Functions inherited from Video::GraphicsPipeline
 GraphicsPipeline ()
 Create a new graphics pipeline. More...
 
virtual ~GraphicsPipeline ()
 Destructor. More...
 

Detailed Description

WebGPU implementation of GraphicsPipeline.

Constructor & Destructor Documentation

◆ WebGPUGraphicsPipeline()

Video::WebGPUGraphicsPipeline::WebGPUGraphicsPipeline ( WebGPURenderer renderer,
const ShaderProgram shaderProgram,
const Configuration configuration,
const VertexDescription vertexDescription = nullptr 
)

Create new WebGPU graphics pipeline.

Parameters
rendererThe WebGPU renderer.
shaderProgramThe shader program to use.
configurationThe configuration of the pipeline.
vertexDescriptionThe description of the vertex input to the pipeline.

◆ ~WebGPUGraphicsPipeline()

Video::WebGPUGraphicsPipeline::~WebGPUGraphicsPipeline ( )
final

Destructor.

Member Function Documentation

◆ GetRenderPipeline()

WGPURenderPipeline Video::WebGPUGraphicsPipeline::GetRenderPipeline ( const RenderPassDescription renderPassDescription)

Get the WebGPU pipeline for a given render pass.

Parameters
renderPassDescriptionA description of the render pass to generate a pipeline for.
Returns
The internal WebGPU pipeline.

◆ GetShaderProgram()

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

Get the shader program.

Returns
The shader program.

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