RavEngine
Loading...
Searching...
No Matches
WGShaderLibrary.hpp
1#pragma once
2#include <emscripten/html5_webgpu.h>
3#include <RGL/Types.hpp>
4#include <RGL/ShaderLibrary.hpp>
5#include <string_view>
6#include <filesystem>
7#include <memory>
8
9namespace RGL{
10 struct DeviceWG;
11
13 const std::shared_ptr<DeviceWG> owningDevice;
14 WGPUShaderModule shaderModule;
15
16 ShaderLibraryWG(decltype(owningDevice), const std::filesystem::path& pathToShader);
17 ShaderLibraryWG(decltype(owningDevice), const std::string_view, const FromSourceConfig& config);
18
19 virtual ~ShaderLibraryWG();
20 private:
21 void InitFromShaderSource(decltype(owningDevice), const std::string_view shadercode);
22 };
23}
Definition ShaderLibrary.hpp:11
Definition ShaderLibrary.hpp:15
Definition WGShaderLibrary.hpp:12