-
Notifications
You must be signed in to change notification settings - Fork 35
/
EmptySerializer.h
57 lines (50 loc) · 4.45 KB
/
EmptySerializer.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
56
57
// Copyright 2021-2024 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "anari/anari.h"
#include "DebugDevice.h"
namespace anari {
namespace debug_device {
class EmptySerializer : public SerializerInterface {
DebugDevice *dd;
public:
EmptySerializer(DebugDevice *dd) : dd(dd) { }
void anariNewArray1D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1, ANARIArray1D result) override { }
void anariNewArray2D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1, uint64_t numItems2, ANARIArray2D result) override { }
void anariNewArray3D(ANARIDevice device, const void* appMemory, ANARIMemoryDeleter deleter, const void* userData, ANARIDataType dataType, uint64_t numItems1, uint64_t numItems2, uint64_t numItems3, ANARIArray3D result) override { }
void anariMapArray(ANARIDevice device, ANARIArray array, void *result) override { }
void anariUnmapArray(ANARIDevice device, ANARIArray array) override { }
void anariNewLight(ANARIDevice device, const char* type, ANARILight result) override { }
void anariNewCamera(ANARIDevice device, const char* type, ANARICamera result) override { }
void anariNewGeometry(ANARIDevice device, const char* type, ANARIGeometry result) override { }
void anariNewSpatialField(ANARIDevice device, const char* type, ANARISpatialField result) override { }
void anariNewVolume(ANARIDevice device, const char* type, ANARIVolume result) override { }
void anariNewSurface(ANARIDevice device, ANARISurface result) override { }
void anariNewMaterial(ANARIDevice device, const char* type, ANARIMaterial result) override { }
void anariNewSampler(ANARIDevice device, const char* type, ANARISampler result) override { }
void anariNewGroup(ANARIDevice device, ANARIGroup result) override { }
void anariNewInstance(ANARIDevice device, const char *type, ANARIInstance result) override { }
void anariNewWorld(ANARIDevice device, ANARIWorld result) override { }
void anariNewObject(ANARIDevice device, const char* objectType, const char* type, ANARIObject result) override { }
void anariSetParameter(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, const void *mem) override { }
void anariUnsetParameter(ANARIDevice device, ANARIObject object, const char* name) override { }
void anariMapParameterArray1D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t *elementStride, void *result) override { }
void anariMapParameterArray2D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t numElements2, uint64_t *elementStride, void *result) override { }
void anariMapParameterArray3D(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType dataType, uint64_t numElements1, uint64_t numElements2, uint64_t numElements3, uint64_t *elementStride, void *result) override { }
void anariUnmapParameterArray(ANARIDevice device, ANARIObject object, const char* name) override { }
void anariCommitParameters(ANARIDevice device, ANARIObject object) override { }
void anariRelease(ANARIDevice device, ANARIObject object) override { }
void anariRetain(ANARIDevice device, ANARIObject object) override { }
void anariGetProperty(ANARIDevice device, ANARIObject object, const char* name, ANARIDataType type, void* mem, uint64_t size, ANARIWaitMask mask, int result) override { }
void anariNewFrame(ANARIDevice device, ANARIFrame result) override { }
void anariMapFrame(ANARIDevice device, ANARIFrame frame, const char* channel, uint32_t *width, uint32_t *height, ANARIDataType *pixelType, const void *mapped) override { }
void anariUnmapFrame(ANARIDevice device, ANARIFrame frame, const char* channel) override { }
void anariNewRenderer(ANARIDevice device, const char* type, ANARIRenderer result) override { }
void anariRenderFrame(ANARIDevice device, ANARIFrame frame) override { }
void anariFrameReady(ANARIDevice device, ANARIFrame frame, ANARIWaitMask mask, int result) override { }
void anariDiscardFrame(ANARIDevice device, ANARIFrame frame) override { }
void anariReleaseDevice(ANARIDevice device) override { }
void insertStatus(ANARIObject source, ANARIDataType sourceType, ANARIStatusSeverity severity, ANARIStatusCode code, const char *status) override { }
};
}
}