Package org.lwjgl.opengl
Class ARBGLSPIRV
- java.lang.Object
-
- org.lwjgl.opengl.ARBGLSPIRV
-
public class ARBGLSPIRV extends java.lang.ObjectNative 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 intGL_SHADER_BINARY_FORMAT_SPIR_V_ARBAccepted by thebinaryformatparameter ofShaderBinary.static intGL_SPIR_V_BINARY_ARBAccepted by thepnameparameter ofGetShaderiv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, int[] pConstantIndex, int[] pConstantValue)Array version of:SpecializeShaderARBstatic voidglSpecializeShaderARB(int shader, java.nio.ByteBuffer pEntryPoint, java.nio.IntBuffer pConstantIndex, java.nio.IntBuffer pConstantValue)Specializes a shader created from a SPIR-V module.static voidglSpecializeShaderARB(int shader, java.lang.CharSequence pEntryPoint, int[] pConstantIndex, int[] pConstantValue)Array version of:SpecializeShaderARBstatic voidglSpecializeShaderARB(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 thebinaryformatparameter ofShaderBinary.
-
GL_SPIR_V_BINARY_ARB
Accepted by thepnameparameter 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
-
-