hyporo-cpp/source/hpr/gpu/context.cpp
2022-12-06 23:52:49 +05:00

23 lines
311 B
C++

#include "context.hpp"
namespace hpr::gpu
{
Context::Context() :
p_api {DeviceAPI::Unknown}
{}
Context::Context(DeviceAPI api) :
p_api {api}
{}
Context::~Context() = default;
bool Context::checkCompability(const Context* ctx) const
{
return (ctx != nullptr) ? ctx->p_api == p_api : true;
}
}