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

WebGPU implementation of Shader. More...

#include <WebGPUShader.hpp>

Inheritance diagram for Video::WebGPUShader:
Video::Shader

Public Member Functions

 WebGPUShader (WGPUDevice device, const ShaderSource &shaderSource, Type type)
 Create new WebGPU shader. More...
 
 ~WebGPUShader () final
 Destructor. More...
 
const ShaderSource::ReflectionInfo & GetReflectionInfo () const
 Get reflection info. More...
 
WGPUShaderStage GetShaderStage () const
 Get the shader stage. More...
 
WGPUShaderModule GetShaderModule () const
 Get the shader module. More...
 
- Public Member Functions inherited from Video::Shader
 Shader ()
 Create a new shader. More...
 
virtual ~Shader ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::Shader
enum class  Type { VERTEX_SHADER , FRAGMENT_SHADER , COMPUTE_SHADER }
 The type of shader. More...
 

Detailed Description

WebGPU implementation of Shader.

Constructor & Destructor Documentation

◆ WebGPUShader()

Video::WebGPUShader::WebGPUShader ( WGPUDevice  device,
const ShaderSource &  shaderSource,
Type  type 
)

Create new WebGPU shader.

Parameters
deviceWebGPU device.
shaderSourceThe source of the shader, generated by the shader processor.
typeThe type of shader to create.

◆ ~WebGPUShader()

Video::WebGPUShader::~WebGPUShader ( )
final

Destructor.

Member Function Documentation

◆ GetReflectionInfo()

const ShaderSource::ReflectionInfo & Video::WebGPUShader::GetReflectionInfo ( ) const

Get reflection info.

Returns
The reflection info generated by the shader processor.

◆ GetShaderModule()

WGPUShaderModule Video::WebGPUShader::GetShaderModule ( ) const

Get the shader module.

Returns
The shader module.

◆ GetShaderStage()

WGPUShaderStage Video::WebGPUShader::GetShaderStage ( ) const

Get the shader stage.

Returns
The shader stage.

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