hyporo-cpp/source/hyporo/gpu/shader.cpp

40 lines
539 B
C++
Raw Normal View History

2022-09-24 16:07:46 +05:00
#include "shader.hpp"
namespace hpr::gpu
{
Shader::Shader() :
Context {DeviceAPI::Unknown},
2022-10-05 21:10:51 +05:00
p_filename {"\0"},
p_label {"\0"},
p_type {ShaderType::Vertex}
2022-09-24 16:07:46 +05:00
{}
Shader::Shader(DeviceAPI api) :
Context {api},
2022-10-05 21:10:51 +05:00
p_filename {"\0"},
p_label {"\0"},
p_type {ShaderType::Vertex}
2022-09-24 16:07:46 +05:00
{}
Shader::~Shader()
{}
2022-10-05 21:10:51 +05:00
const std::string Shader::filename() const
{
return p_filename;
}
const std::string Shader::label() const
{
return p_label;
}
const Shader::ShaderType Shader::type() const
{
return p_type;
}
2022-09-24 16:07:46 +05:00
}