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

39 lines
512 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-11-18 21:50:49 +05:00
p_filename {},
p_label {},
2022-10-05 21:10:51 +05:00
p_type {ShaderType::Vertex}
2022-09-24 16:07:46 +05:00
{}
Shader::Shader(DeviceAPI api) :
Context {api},
2022-11-18 21:50:49 +05:00
p_filename {},
p_label {},
2022-10-05 21:10:51 +05:00
p_type {ShaderType::Vertex}
2022-09-24 16:07:46 +05:00
{}
2022-11-18 21:50:49 +05:00
Shader::~Shader() = default;
2022-09-24 16:07:46 +05:00
2022-11-18 21:50:49 +05:00
std::string Shader::filename() const
2022-10-05 21:10:51 +05:00
{
return p_filename;
}
2022-11-18 21:50:49 +05:00
std::string Shader::label() const
2022-10-05 21:10:51 +05:00
{
return p_label;
}
2022-11-18 21:50:49 +05:00
Shader::ShaderType Shader::type() const
2022-10-05 21:10:51 +05:00
{
return p_type;
}
2022-09-24 16:07:46 +05:00
}