forked from KhronosGroup/ANARI-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DebugInterface.h
55 lines (48 loc) · 3.89 KB
/
DebugInterface.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
46
47
48
49
50
51
52
53
54
55
// Copyright 2021-2024 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "anari/anari.h"
namespace anari {
namespace debug_device {
class DebugInterface {
public:
virtual ~DebugInterface() = default;
virtual void anariNewArray1D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1) = 0;
virtual void anariNewArray2D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1, uint64_t numItems2) = 0;
virtual void anariNewArray3D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1, uint64_t numItems2, uint64_t numItems3) = 0;
virtual void anariMapArray(ANARIDevice device, ANARIArray array) = 0;
virtual void anariUnmapArray(ANARIDevice device, ANARIArray array) = 0;
virtual void anariNewLight(ANARIDevice device, const char* type) = 0;
virtual void anariNewCamera(ANARIDevice device, const char* type) = 0;
virtual void anariNewGeometry(ANARIDevice device, const char* type) = 0;
virtual void anariNewSpatialField(ANARIDevice device, const char* type) = 0;
virtual void anariNewVolume(ANARIDevice device, const char* type) = 0;
virtual void anariNewSurface(ANARIDevice device) = 0;
virtual void anariNewMaterial(ANARIDevice device, const char* type) = 0;
virtual void anariNewSampler(ANARIDevice device, const char* type) = 0;
virtual void anariNewGroup(ANARIDevice device) = 0;
virtual void anariNewInstance(ANARIDevice device, const char *type) = 0;
virtual void anariNewWorld(ANARIDevice device) = 0;
virtual void anariNewObject(ANARIDevice device, const char* objectType, const char* type) = 0;
virtual void anariSetParameter(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, const void *mem) = 0;
virtual void anariUnsetParameter(ANARIDevice device, ANARIObject object, const char* name) = 0;
virtual void anariUnsetAllParameters(ANARIDevice device, ANARIObject object) = 0;
virtual void anariMapParameterArray1D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t *elementStride) = 0;
virtual void anariMapParameterArray2D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t numElements2, uint64_t *elementStride) = 0;
virtual void anariMapParameterArray3D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t numElements2, uint64_t numElements3, uint64_t *elementStride) = 0;
virtual void anariUnmapParameterArray(ANARIDevice device, ANARIObject object, const char* name) = 0;
virtual void anariCommitParameters(ANARIDevice device, ANARIObject object) = 0;
virtual void anariRelease(ANARIDevice device, ANARIObject object) = 0;
virtual void anariRetain(ANARIDevice device, ANARIObject object) = 0;
virtual void anariGetProperty(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType type, void* mem, uint64_t size, ANARIWaitMask mask) = 0;
virtual void anariNewFrame(ANARIDevice device) = 0;
virtual void anariMapFrame(ANARIDevice device, ANARIFrame frame, const char* channel, uint32_t *width, uint32_t *height, ANARIDataType *pixelType) = 0;
virtual void anariUnmapFrame(ANARIDevice device, ANARIFrame frame, const char* channel) = 0;
virtual void anariNewRenderer(ANARIDevice device, const char* type) = 0;
virtual void anariRenderFrame(ANARIDevice device, ANARIFrame frame) = 0;
virtual void anariFrameReady(ANARIDevice device, ANARIFrame frame, ANARIWaitMask mask) = 0;
virtual void anariDiscardFrame(ANARIDevice device, ANARIFrame frame) = 0;
virtual void anariReleaseDevice(ANARIDevice device) = 0;
};
}
}