-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathObject.h
More file actions
44 lines (33 loc) · 997 Bytes
/
Object.h
File metadata and controls
44 lines (33 loc) · 997 Bytes
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
// Copyright 2021-2026 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "HelideGlobalState.h"
#include "HelideMath.h"
// helium
#include "helium/BaseObject.h"
#include "helium/utility/ChangeObserverPtr.h"
// std
#include <string_view>
namespace helide {
struct Object : public helium::BaseObject
{
Object(ANARIDataType type, HelideGlobalState *s);
virtual ~Object() = default;
virtual bool getProperty(const std::string_view &name,
ANARIDataType type,
void *ptr,
uint64_t size,
uint32_t flags) override;
virtual void commitParameters() override;
virtual void finalize() override;
bool isValid() const override;
HelideGlobalState *deviceState() const;
};
struct UnknownObject : public Object
{
UnknownObject(ANARIDataType type, HelideGlobalState *s);
~UnknownObject() override = default;
bool isValid() const override;
};
} // namespace helide
HELIDE_ANARI_TYPEFOR_SPECIALIZATION(helide::Object *, ANARI_OBJECT);