1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#include "RenderAPI/BsOcclusionQuery.h"
4#include "Managers/BsQueryManager.h"
5
6namespace bs { namespace ct
7{
8 OcclusionQuery::OcclusionQuery(bool binary)
9 :mActive(false), mBinary(binary)
10 { }
11
12 SPtr<OcclusionQuery> OcclusionQuery::create(bool binary, UINT32 deviceIdx)
13 {
14 return QueryManager::instance().createOcclusionQuery(binary, deviceIdx);
15 }
16}}