-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathObject.h
45 lines (34 loc) · 1.03 KB
/
Object.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2022 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "VisionarayGlobalState.h"
#include "common.h"
// helium
#include "helium/BaseObject.h"
#include "helium/utility/ChangeObserverPtr.h"
// visionaray
#include "visionaray/math/math.h"
// std
#include <string_view>
namespace visionaray {
struct Object : public helium::BaseObject
{
Object(ANARIDataType type, VisionarayGlobalState *s);
virtual ~Object() = default;
virtual bool getProperty(const std::string_view &name,
ANARIDataType type,
void *ptr,
uint32_t flags) override;
virtual void commitParameters() override;
virtual void finalize() override;
virtual bool isValid() const override;
VisionarayGlobalState *deviceState() const;
};
struct UnknownObject : public Object
{
UnknownObject(ANARIDataType type, VisionarayGlobalState *s);
~UnknownObject() override = default;
bool isValid() const override;
};
} // namespace visionaray
VISIONARAY_ANARI_TYPEFOR_SPECIALIZATION(visionaray::Object *, ANARI_OBJECT);