3#include "../Interface/Shader.hpp"
6#include <ShaderProcessor/ShaderSource.hpp>
19 WebGPUShader(WGPUDevice device,
const ShaderSource& shaderSource,
Type type);
45 WGPUShaderModule shaderModule;
46 ShaderSource::ReflectionInfo reflectionInfo;
47 WGPUShaderStage shaderStage;
Compiles and handles a shader. Shaders should be linked together into a ShaderProgram.
Definition: Shader.hpp:8
Type
The type of shader.
Definition: Shader.hpp:11
WebGPU implementation of Shader.
Definition: WebGPUShader.hpp:11
~WebGPUShader() final
Destructor.
Definition: WebGPUShader.cpp:41
WebGPUShader(WGPUDevice device, const ShaderSource &shaderSource, Type type)
Create new WebGPU shader.
Definition: WebGPUShader.cpp:8
WGPUShaderStage GetShaderStage() const
Get the shader stage.
Definition: WebGPUShader.cpp:49
WGPUShaderModule GetShaderModule() const
Get the shader module.
Definition: WebGPUShader.cpp:53
const ShaderSource::ReflectionInfo & GetReflectionInfo() const
Get reflection info.
Definition: WebGPUShader.cpp:45
Definition: Editor.hpp:18