Skip to content

Commit

Permalink
feat(EGL) add new extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Mar 27, 2023
1 parent be31384 commit 6d56dd7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ public class EGLCapabilities {
public final boolean EGL_NV_robustness_video_memory_purge;
/** When true, {@link NVStreamConsumerEGLImage} is supported. */
public final boolean EGL_NV_stream_consumer_eglimage;
/** When true, {@link NVStreamConsumerEGLImageUseScanoutAttrib} is supported. */
public final boolean EGL_NV_stream_consumer_eglimage_use_scanout_attrib;
/** When true, {@link NVStreamConsumerGLTextureYUV} is supported. */
public final boolean EGL_NV_stream_consumer_gltexture_yuv;
/** See {@link NVStreamRemote NV_stream_remote}. */
Expand Down Expand Up @@ -1168,6 +1170,7 @@ private EGLCapabilities(Set<String> ext, long... functions) {
EGL_NV_quadruple_buffer = ext.contains("EGL_NV_quadruple_buffer");
EGL_NV_robustness_video_memory_purge = ext.contains("EGL_NV_robustness_video_memory_purge");
EGL_NV_stream_consumer_eglimage = check_NV_stream_consumer_eglimage(ext);
EGL_NV_stream_consumer_eglimage_use_scanout_attrib = ext.contains("EGL_NV_stream_consumer_eglimage_use_scanout_attrib");
EGL_NV_stream_consumer_gltexture_yuv = check_NV_stream_consumer_gltexture_yuv(ext);
EGL_NV_stream_cross_display = ext.contains("EGL_NV_stream_cross_display");
EGL_NV_stream_cross_object = ext.contains("EGL_NV_stream_cross_object");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.egl;

/**
* Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/EGL/extensions/NV/EGL_NV_stream_consumer_eglimage_use_scanout_attrib.txt">NV_stream_consumer_eglimage_use_scanout_attrib</a> extension.
*
* <p>This extension allows clients to specify to EGL implementations if the images frames in the {@code EGLStream} acquired as {@code EGLImages} are to be
* scanned out directly by display hardware.</p>
*
* <p>Requires {@link NVStreamConsumerEGLImage NV_stream_consumer_eglimage}.</p>
*/
public final class NVStreamConsumerEGLImageUseScanoutAttrib {

/** Accepted as an attribute name in the {@code attrib_list} parameter of {@link NVStreamConsumerEGLImage#eglStreamImageConsumerConnectNV StreamImageConsumerConnectNV}. */
public static final int EGL_STREAM_CONSUMER_IMAGE_USE_SCANOUT_NV = 0x3378;

private NVStreamConsumerEGLImageUseScanoutAttrib() {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package egl.templates

import egl.*
import org.lwjgl.generator.*

val NV_stream_consumer_eglimage_use_scanout_attrib = "NVStreamConsumerEGLImageUseScanoutAttrib".nativeClassEGL("NV_stream_consumer_eglimage_use_scanout_attrib", postfix = NV) {
documentation =
"""
Native bindings to the $registryLink extension.
This extension allows clients to specify to EGL implementations if the images frames in the {@code EGLStream} acquired as {@code EGLImages} are to be
scanned out directly by display hardware.
Requires ${NV_stream_consumer_eglimage.link}.
"""

IntConstant(
"Accepted as an attribute name in the {@code attrib_list} parameter of #StreamImageConsumerConnectNV().",

"STREAM_CONSUMER_IMAGE_USE_SCANOUT_NV"..0x3378
)
}

0 comments on commit 6d56dd7

Please sign in to comment.