Package org.lwjgl.opengl
Class ARBGLSPIRV
- java.lang.Object
-
- org.lwjgl.opengl.ARBGLSPIRV
-
public class ARBGLSPIRV extends java.lang.Object
Native bindings to the ARB_gl_spirv extension.This is version 100 of the GL_ARB_gl_spirv extension.
This extension does two things:
- Allows a SPIR-V module to be specified as containing a programmable shader stage, rather than using GLSL, whatever the source language was used to create the SPIR-V module.
- Modifies GLSL to be a source language for creating SPIR-V modules for OpenGL consumption. Such GLSL can be used to create such SPIR-V modules, outside of the OpenGL runtime.
Requires
OpenGL 3.3
.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_SHADER_BINARY_FORMAT_SPIR_V_ARB
Accepted by thebinaryformat
parameter ofShaderBinary
.static int
GL_SPIR_V_BINARY_ARB
Accepted by thepname
parameter ofGetShaderiv
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, int[] pConstantIndex, int[] pConstantValue)
Array version of:SpecializeShaderARB
static void
glSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, java.nio.IntBuffer pConstantIndex, java.nio.IntBuffer pConstantValue)
Specializes a shader created from a SPIR-V module.static void
glSpecializeShaderARB(int shader, java.lang.CharSequence pEntryPoint, int[] pConstantIndex, int[] pConstantValue)
Array version of:SpecializeShaderARB
static void
glSpecializeShaderARB(int shader, java.lang.CharSequence pEntryPoint, java.nio.IntBuffer pConstantIndex, java.nio.IntBuffer pConstantValue)
Specializes a shader created from a SPIR-V module.
-
-
-
Field Detail
-
GL_SHADER_BINARY_FORMAT_SPIR_V_ARB
Accepted by thebinaryformat
parameter ofShaderBinary
.
-
GL_SPIR_V_BINARY_ARB
Accepted by thepname
parameter ofGetShaderiv
.
-
-
Method Detail
-
glSpecializeShaderARB
public static void glSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, java.nio.IntBuffer pConstantIndex, java.nio.IntBuffer pConstantValue) public static void glSpecializeShaderARB(int shader, java.lang.CharSequence pEntryPoint, java.nio.IntBuffer pConstantIndex, java.nio.IntBuffer pConstantValue)
Specializes a shader created from a SPIR-V module.- Parameters:
shader
-pEntryPoint
-pConstantIndex
-pConstantValue
-
-
glSpecializeShaderARB
public static void glSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, int[] pConstantIndex, int[] pConstantValue) public static void glSpecializeShaderARB(int shader, java.lang.CharSequence pEntryPoint, int[] pConstantIndex, int[] pConstantValue)
Array version of:SpecializeShaderARB
-
-