Finality Engine
Loading...
Searching...
No Matches
Shader.h
Go to the documentation of this file.
1
6#pragma once
7#include <Core/Core.h>
8#include <Core/RenderTypes.h>
9#include <Core/RenderDevice.h>
10#include <memory>
11
12#include <string>
13
14#include <Assets/Asset.h>
15
16namespace FINALITY
17{
19 class FAPI Shader : public Asset
20 {
21 public:
22 virtual ~Shader() = default;
23 static std::unique_ptr<Shader> Create(const std::string& filePath, RenderDevice* device);
24 virtual void Load(const std::string& filePath) = 0;
25 virtual RendererAPI GetAPI() const = 0;
26
27 AssetType GetType() const override { return AssetType::Shader; }
28 };
29}
#define FAPI
Definition Core.h:22
Defines the graphics backend boundary and render submission contract.
Defines the graphics backend boundary and render submission contract.
virtual ~Shader()=default
virtual void Load(const std::string &filePath)=0
virtual RendererAPI GetAPI() const =0
AssetType GetType() const override
Definition Shader.h:27
static std::unique_ptr< Shader > Create(const std::string &filePath, RenderDevice *device)
AssetType
Definition Asset.h:15