Loading...
Searching...
No Matches
SyphonHelpers.hpp
1#pragma once
2#include <QObject>
3#include <QOpenGLContext>
4
5#include <AppKit/AppKit.h>
6
7#if __has_include(<Metal/Metal.h>)
8#include <Metal/Metal.h>
9#endif
10
11class QRhi;
12class QRhiCommandBuffer;
13
14namespace Gfx
15{
16// OpenGL helpers
17CGLContextObj nativeContext(QRhi& rhi);
18
19// Metal helpers
20#if __has_include(<Metal/Metal.h>)
21id<MTLDevice> nativeMetalDevice(QRhi& rhi);
22id<MTLCommandBuffer> nativeMetalCommandBuffer(QRhiCommandBuffer& cb);
23#endif
24}
Binds the rendering pipeline to ossia processes.
Definition CameraDevice.cpp:30