|
Hymn to Beauty
C++ 3D Engine
|
WebGPU implementation of ShaderProgram. More...
#include <WebGPUShaderProgram.hpp>
Public Member Functions | |
| WebGPUShaderProgram (WGPUDevice device, std::initializer_list< const Shader * > shaders) | |
| Create new WebGPU shader program. More... | |
| ~WebGPUShaderProgram () final | |
| Destructor. More... | |
| const std::vector< const WebGPUShader * > & | GetShaders () const |
| Get the shaders in the shader program. More... | |
| const WGPUBindGroupLayout * | GetBindGroupLayouts () const |
| Get the bind group layouts. More... | |
| bool | IsBindGroupLayoutEmpty (ShaderProgram::BindingType bindingType) const |
| Get whether a bind group layout is empty. More... | |
| bool | HasUniformsBuffer () const |
| Get whether the UNIFORMS bind group has a uniform buffer. More... | |
| uint32_t | GetPushConstantSize () const |
| Get the size of the push constants. More... | |
Public Member Functions inherited from Video::ShaderProgram | |
| ShaderProgram () | |
| Create a new shader program. More... | |
| virtual | ~ShaderProgram () |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from Video::ShaderProgram | |
| enum | BindingType { MATRICES , MATERIAL , UNIFORMS , STORAGE_BUFFER , BINDING_TYPES } |
| A type of bound resource. More... | |
WebGPU implementation of ShaderProgram.
| Video::WebGPUShaderProgram::WebGPUShaderProgram | ( | WGPUDevice | device, |
| std::initializer_list< const Shader * > | shaders | ||
| ) |
Create new WebGPU shader program.
| device | The WebGPU device. |
| shaders | List of shaders to link together. |
|
final |
Destructor.
| const WGPUBindGroupLayout * Video::WebGPUShaderProgram::GetBindGroupLayouts | ( | ) | const |
Get the bind group layouts.
| uint32_t Video::WebGPUShaderProgram::GetPushConstantSize | ( | ) | const |
Get the size of the push constants.
| const std::vector< const WebGPUShader * > & Video::WebGPUShaderProgram::GetShaders | ( | ) | const |
Get the shaders in the shader program.
| bool Video::WebGPUShaderProgram::HasUniformsBuffer | ( | ) | const |
Get whether the UNIFORMS bind group has a uniform buffer.
| bool Video::WebGPUShaderProgram::IsBindGroupLayoutEmpty | ( | ShaderProgram::BindingType | bindingType | ) | const |
Get whether a bind group layout is empty.
| bindingType | The binding type to check the bind group layout for. |