2 * Adopted from OpenSubdiv with the following license:
6 * Licensed under the Apache License, Version 2.0 (the "Apache License")
7 * with the following modification; you may not use this file except in
8 * compliance with the Apache License and the following modification to it:
9 * Section 6. Trademarks. is deleted and replaced with:
11 * 6. Trademarks. This License does not grant permission to use the trade
12 * names, trademarks, service marks, or product names of the Licensor
13 * and its affiliates, except as required to comply with Section 4(c) of
14 * the License and to reproduce the content of the NOTICE file.
16 * You may obtain a copy of the Apache License at
18 * http: //www.apache.org/licenses/LICENSE-2.0
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the Apache License with the above modification is
22 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23 * KIND, either express or implied. See the Apache License for the specific
24 * language governing permissions and limitations under the Apache License.
27 #ifndef __OPENSUBDIV_DEV_CE_CONTEXT_CUDA_H__
28 #define __OPENSUBDIV_DEV_CE_CONTEXT_CUDA_H__
32 class CudaDeviceContext {
37 static bool HAS_CUDA_VERSION_4_0();
39 /* Initialze cuda device from the current GL context. */
42 /* Initialze cuda device from the ID3D11Device/ */
43 bool Initialize(ID3D11Device *device);
45 /* Returns true if the cuda device has already been initialized. */
46 bool IsInitialized() const {
53 #endif /* __OPENSUBDIV_DEV_CE_CONTEXT_OPENCL_H__ */