|
Hymn to Beauty
C++ 3D Engine
|
WebGPU implementation of Shader. More...
#include <WebGPUShader.hpp>
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... | |
WebGPU implementation of Shader.
| Video::WebGPUShader::WebGPUShader | ( | WGPUDevice | device, |
| const ShaderSource & | shaderSource, | ||
| Type | type | ||
| ) |
Create new WebGPU shader.
| device | WebGPU device. |
| shaderSource | The source of the shader, generated by the shader processor. |
| type | The type of shader to create. |
|
final |
Destructor.
| const ShaderSource::ReflectionInfo & Video::WebGPUShader::GetReflectionInfo | ( | ) | const |
Get reflection info.
| WGPUShaderModule Video::WebGPUShader::GetShaderModule | ( | ) | const |
Get the shader module.
| WGPUShaderStage Video::WebGPUShader::GetShaderStage | ( | ) | const |
Get the shader stage.