OpenSubdiv: opensubdiv/osd/mtlCommon.h Source File

| 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
23 class MTLContext {
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
OpenSubdiv
Definition limits.h:15
OpenSubdiv::OPENSUBDIV_VERSION
Definition limits.h:16
OpenSubdiv::OPENSUBDIV_VERSION::Osd
Definition bufferDescriptor.h:17
OpenSubdiv::OPENSUBDIV_VERSION::Osd::MTLContext
Definition mtlCommon.h:23
OpenSubdiv::OPENSUBDIV_VERSION::Osd::MTLContext::commandQueue
id< MTLCommandQueue > commandQueue
Definition mtlCommon.h:26
OpenSubdiv::OPENSUBDIV_VERSION::Osd::MTLContext::device
id< MTLDevice > device
Definition mtlCommon.h:25