Hubris Engine
Dev
A Project to learn and get into Game Engine developement.
Loading...
Searching...
No Matches
Shader.cpp
Go to the documentation of this file.
1
#include "
pch.h
"
2
#include "
Core/Graphics/Shader.h
"
3
#include "
Core/Graphics/Vulkan/vkShader.h
"
4
5
using namespace
Hubris
;
6
7
Handle<Graphics::Shader>
Graphics::Shader::Create
(
const
std::vector<char>& data,
ShaderStage
type)
8
{
9
if
constexpr
(
Platform
==
Hbr_Platform::Windows
) {
10
return
new
Vulkan::vkShader
(data, type);
11
}
12
}
Hbr_Platform::Windows
@ Windows
Definition
Platform.h:5
Shader.h
Hubris::Graphics::Platform
Definition
GraphicsPlatform.cpp:5
Hubris::Graphics::Shader::Create
static Handle< Shader > Create(const std::vector< char > &data, ShaderStage type)
Definition
Shader.cpp:7
Hubris::Graphics::Vulkan::vkShader
Definition
vkShader.h:7
Hubris::Graphics::ShaderStage
ShaderStage
Definition
Shader.h:8
Hubris
The Hubris Engine main namespace.
Definition
EventBus.h:4
pch.h
Hubris::Handle
Definition
Memory.h:462
vkShader.h
src
Core
Graphics
Shader.cpp
Generated by
1.13.2