hyporo-cpp/source/hyporo/gpu/context.cpp
2022-09-24 16:07:46 +05:00

24 lines
304 B
C++

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