OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderInfo.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
19 
20 RenderInfo::RenderInfo(const ::QueryRenderer::RenderSessionKey& in_render_session_key,
21  const RenderQueryOptions& in_render_query_opts,
22  const heavyai::InSituFlags in_insitu_flags)
23  : heavyai::InSituFlagsOwnerInterface(in_insitu_flags)
24  , render_session_key(in_render_session_key)
25  , render_query_opts_(in_render_query_opts) {
26  CHECK(false);
27 }
28 
30  CHECK(false);
31  static const Catalog_Namespace::SessionInfo tmp(
32  nullptr,
33  //Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false),
34  Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false, ""),
36  "");
37  return tmp;
38 }
39 
40 std::shared_ptr<Catalog_Namespace::SessionInfo const> RenderInfo::getSessionInfoPtr()
41  const {
42  UNREACHABLE();
43  return {};
44 }
45 
47  CHECK(false);
48 }
49 
51  CHECK(false);
52 }
53 
55  CHECK(false);
56  return false;
57 }
58 
60  CHECK(false);
61 }
62 
63 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQueryVboLayout() const {
64  CHECK(false);
65  return nullptr;
66 }
67 
69  const std::shared_ptr<QueryRenderer::QueryDataLayout>& vbo_layout) {
70  CHECK(false);
71 }
72 
73 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQuerySsboLayout() const {
74  CHECK(false);
75  return nullptr;
76 }
77 
79  const std::shared_ptr<QueryRenderer::QueryDataLayout>& ssbo_layout) {
80  CHECK(false);
81 }
82 
84  CHECK(false);
85  return render_query_opts_;
86 }
87 
88 void RenderInfo::reset(std::unique_ptr<RenderQueryOptions> in_query_opts,
89  const heavyai::InSituFlags in_insitu_flags) {
90  CHECK(false);
91 }
void disableCudaBuffers()
Definition: RenderInfo.cpp:59
RenderInfo(const ::QueryRenderer::RenderSessionKey &in_render_session_key, const RenderQueryOptions &in_render_query_opts, const heavyai::InSituFlags in_insitu_flags=heavyai::InSituFlags::kInSitu)
Definition: RenderInfo.cpp:20
bool useCudaBuffers() const
Definition: RenderInfo.cpp:54
std::shared_ptr< Catalog_Namespace::SessionInfo const > getSessionInfoPtr() const
Definition: RenderInfo.cpp:40
void forceNonInSitu()
Definition: RenderInfo.cpp:46
std::shared_ptr< QueryRenderer::QueryDataLayout > getQuerySsboLayout() const
Definition: RenderInfo.cpp:73
void reset(std::unique_ptr< RenderQueryOptions > in_query_opts, const heavyai::InSituFlags in_insitu_flags)
Definition: RenderInfo.cpp:88
#define UNREACHABLE()
Definition: Logger.h:338
const Catalog_Namespace::SessionInfo & getSessionInfo() const
Definition: RenderInfo.cpp:29
const RenderQueryOptions & getRenderQueryOptions() const
Definition: RenderInfo.cpp:83
std::shared_ptr< QueryRenderer::QueryDataLayout > getQueryVboLayout() const
Definition: RenderInfo.cpp:63
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:75
void setNonInSitu()
Definition: RenderInfo.cpp:50
void setQuerySsboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &ssbo_layout)
Definition: RenderInfo.cpp:78
#define CHECK(condition)
Definition: Logger.h:291
void setQueryVboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &vbo_layout)
Definition: RenderInfo.cpp:68