clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h Source File

clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h Source File#

HIP Runtime API Reference: clr/hipamd/include/hip/amd_detail/amd_hip_gl_interop.h Source File
amd_hip_gl_interop.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef HIP_INCLUDE_AMD_HIP_GL_INTEROP_H
8#define HIP_INCLUDE_AMD_HIP_GL_INTEROP_H
9
10#if defined(__cplusplus)
11extern "C" {
12#endif
13
31
32
34typedef unsigned int GLuint;
36typedef unsigned int GLenum;
61hipError_t hipGLGetDevices(unsigned int* pHipDeviceCount, int* pHipDevices,
62 unsigned int hipDeviceCount, hipGLDeviceList deviceList);
74 unsigned int flags);
87 unsigned int flags);
91#if defined(__cplusplus)
92}
93#endif /* __cplusplus */
94#endif /* HIP_INCLUDE_AMD_HIP_GL_INTEROP_H */
hipError_t hipGLGetDevices(unsigned int *pHipDeviceCount, int *pHipDevices, unsigned int hipDeviceCount, hipGLDeviceList deviceList)
Queries devices associated with the current OpenGL context.
hipError_t hipGraphicsGLRegisterImage(hipGraphicsResource **resource, GLuint image, GLenum target, unsigned int flags)
Register a GL Image for interop and returns the corresponding graphic resource.
hipError_t hipGraphicsGLRegisterBuffer(hipGraphicsResource **resource, GLuint buffer, unsigned int flags)
Registers a GL Buffer for interop and returns corresponding graphics resource.
hipGLDeviceList
Definition amd_hip_gl_interop.h:24
enum __HIP_NODISCARD hipError_t hipError_t
Definition hip_runtime_api.h:289
unsigned int GLenum
Definition amd_hip_gl_interop.h:36
unsigned int GLuint
Definition amd_hip_gl_interop.h:34
struct _hipGraphicsResource hipGraphicsResource
Definition hip_runtime_api.h:1443
@ hipGLDeviceListNextFrame
Definition amd_hip_gl_interop.h:28
@ hipGLDeviceListAll
All hip devices used by current OpenGL context.
Definition amd_hip_gl_interop.h:25
@ hipGLDeviceListCurrentFrame
Definition amd_hip_gl_interop.h:26