OpenSubdiv
Loading...
Searching...
No Matches
mtlCommon.h
Go to the documentation of this file.
1//
2// Copyright 2013 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7
8#ifndef OPENSUBDIV3_OSD_MTL_COMMON_H
9#define OPENSUBDIV3_OSD_MTL_COMMON_H
10
11#include "../version.h"
12
13#include <cstddef>
14
15@protocol MTLDevice;
16@protocol MTLCommandQueue;
17
18namespace OpenSubdiv {
19namespace OPENSUBDIV_VERSION {
20
21namespace Osd {
22
24public:
25 id<MTLDevice> device = nullptr;
26 id<MTLCommandQueue> commandQueue = nullptr;
27};
28
29} // end namespace Osd
30
31} // end namespace OPENSUBDIV_VERSION
32using namespace OPENSUBDIV_VERSION;
33
34} // end namespace OpenSubdiv
35
36#endif //OPENSUBDIV3_OSD_MTL_COMMON_H