Finality Engine
Toggle main menu visibility
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
16
namespace
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
}
Asset.h
Core.h
FAPI
#define FAPI
Definition
Core.h:22
RenderDevice.h
Defines the graphics backend boundary and render submission contract.
RenderTypes.h
FINALITY::Asset
Definition
Asset.h:26
FINALITY::RenderDevice
Defines the graphics backend boundary and render submission contract.
Definition
RenderDevice.h:68
FINALITY::Shader
Definition
Shader.h:20
FINALITY::Shader::~Shader
virtual ~Shader()=default
FINALITY::Shader::Load
virtual void Load(const std::string &filePath)=0
FINALITY::Shader::GetAPI
virtual RendererAPI GetAPI() const =0
FINALITY::Shader::GetType
AssetType GetType() const override
Definition
Shader.h:27
FINALITY::Shader::Create
static std::unique_ptr< Shader > Create(const std::string &filePath, RenderDevice *device)
FINALITY
Definition
Asset.h:12
FINALITY::AssetType
AssetType
Definition
Asset.h:15
FINALITY::AssetType::Shader
@ Shader
Definition
Asset.h:18
FINALITY::RendererAPI
RendererAPI
Definition
RenderTypes.h:13
FinalityEngine
src
Renderer
Shader.h
Generated by
1.18.0