Debian Codegraph @

opencl/source/sharings/gl/windows/win_enable_gl.h

raw
1 /*
2 * Copyright (C) 2019-2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #pragma once
9 #include "opencl/source/sharings/gl/windows/gl_sharing_windows.h"
10 #include "opencl/source/sharings/sharing_factory.h"
11
12 #include <memory>
13
14 namespace NEO {
15 class Context;
16
17 struct GlCreateContextProperties {
18 GLType glHDCType = 0;
19 GLContext glHGLRCHandle = 0;
20 GLDisplay glHDCHandle = 0;
21 };
22
23 class GlSharingContextBuilder : public SharingContextBuilder {
24 protected:
25 std::unique_ptr<GlCreateContextProperties> contextData;
26
27 public:
28 bool processProperties(cl_context_properties &propertyType, cl_context_properties &propertyValue) override;
29 bool finalizeProperties(Context &context, int32_t &errcodeRet) override;
30 };
31
32 class GlSharingBuilderFactory : public SharingBuilderFactory {
33 public:
34 std::unique_ptr<SharingContextBuilder> createContextBuilder() override;
35 std::string getExtensions(DriverInfo *driverInfo) override;
36 void fillGlobalDispatchTable() override;
37 void *getExtensionFunctionAddress(const std::string &functionName) override;
38 };
39 } // namespace NEO