JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.glsl.ShaderUtil Class Reference
Collaboration diagram for com.jogamp.opengl.util.glsl.ShaderUtil:

Static Public Member Functions

static String getShaderInfoLog (final GL _gl, final int shaderObj)
 
static String getProgramInfoLog (final GL _gl, final int programObj)
 
static boolean isShaderStatusValid (final GL _gl, final int shaderObj, final int name, final PrintStream verboseOut)
 
static boolean isShaderStatusValid (final GL _gl, final IntBuffer shaders, final int name, final PrintStream verboseOut)
 
static boolean isProgramStatusValid (final GL _gl, final int programObj, final int name)
 
static boolean isProgramLinkStatusValid (final GL _gl, final int programObj, final PrintStream verboseOut)
 
static boolean isProgramExecStatusValid (final GL _gl, final int programObj, final PrintStream verboseOut)
 Performs GL2ES2#glValidateProgram(int). More...
 
static void createShader (final GL _gl, final int type, final IntBuffer shaders)
 
static Set< Integer > getShaderBinaryFormats (final GL _gl)
 If supported, queries the natively supported shader binary formats using GL2ES2#GL_NUM_SHADER_BINARY_FORMATS and GL2ES2#GL_SHADER_BINARY_FORMATS via GL2ES2#glGetIntegerv(int, int[], int). More...
 
static boolean isShaderCompilerAvailable (final GL _gl)
 Returns true if a hader compiler is available, otherwise false. More...
 
static boolean isGeometryShaderSupported (final GL _gl)
 Returns true if GeometryShader is supported, i.e. More...
 
static void shaderSource (final GL _gl, final int shader, final CharSequence[] source)
 
static void shaderSource (final GL _gl, final IntBuffer shaders, final CharSequence[][] sources)
 
static void shaderBinary (final GL _gl, final IntBuffer shaders, final int binFormat, final java.nio.Buffer bin)
 
static void compileShader (final GL _gl, final IntBuffer shaders)
 
static void attachShader (final GL _gl, final int program, final IntBuffer shaders)
 
static void detachShader (final GL _gl, final int program, final IntBuffer shaders)
 
static void deleteShader (final GL _gl, final IntBuffer shaders)
 
static boolean createAndLoadShader (final GL _gl, final IntBuffer shader, final int shaderType, final int binFormat, final java.nio.Buffer bin, final PrintStream verboseOut)
 
static boolean createAndCompileShader (final GL _gl, final IntBuffer shader, final int shaderType, final CharSequence[][] sources, final PrintStream verboseOut)
 

Detailed Description

Definition at line 45 of file ShaderUtil.java.

Member Function Documentation

◆ attachShader()

static void com.jogamp.opengl.util.glsl.ShaderUtil.attachShader ( final GL  _gl,
final int  program,
final IntBuffer  shaders 
)
static

Definition at line 305 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compileShader()

static void com.jogamp.opengl.util.glsl.ShaderUtil.compileShader ( final GL  _gl,
final IntBuffer  shaders 
)
static

Definition at line 297 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createAndCompileShader()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.createAndCompileShader ( final GL  _gl,
final IntBuffer  shader,
final int  shaderType,
final CharSequence  sources[][],
final PrintStream  verboseOut 
)
static

Definition at line 355 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createAndLoadShader()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.createAndLoadShader ( final GL  _gl,
final IntBuffer  shader,
final int  shaderType,
final int  binFormat,
final java.nio.Buffer  bin,
final PrintStream  verboseOut 
)
static

Definition at line 330 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createShader()

static void com.jogamp.opengl.util.glsl.ShaderUtil.createShader ( final GL  _gl,
final int  type,
final IntBuffer  shaders 
)
static

Definition at line 145 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteShader()

static void com.jogamp.opengl.util.glsl.ShaderUtil.deleteShader ( final GL  _gl,
final IntBuffer  shaders 
)
static

Definition at line 321 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ detachShader()

static void com.jogamp.opengl.util.glsl.ShaderUtil.detachShader ( final GL  _gl,
final int  program,
final IntBuffer  shaders 
)
static

Definition at line 313 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProgramInfoLog()

static String com.jogamp.opengl.util.glsl.ShaderUtil.getProgramInfoLog ( final GL  _gl,
final int  programObj 
)
static

Definition at line 61 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShaderBinaryFormats()

static Set< Integer > com.jogamp.opengl.util.glsl.ShaderUtil.getShaderBinaryFormats ( final GL  _gl)
static

If supported, queries the natively supported shader binary formats using GL2ES2#GL_NUM_SHADER_BINARY_FORMATS and GL2ES2#GL_SHADER_BINARY_FORMATS via GL2ES2#glGetIntegerv(int, int[], int).

Definition at line 157 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShaderInfoLog()

static String com.jogamp.opengl.util.glsl.ShaderUtil.getShaderInfoLog ( final GL  _gl,
final int  shaderObj 
)
static

Definition at line 46 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isGeometryShaderSupported()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isGeometryShaderSupported ( final GL  _gl)
static

Returns true if GeometryShader is supported, i.e.

whether GLContext is ≥ 3.2 or ARB_geometry_shader4 extension is available.

Definition at line 222 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isProgramExecStatusValid()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isProgramExecStatusValid ( final GL  _gl,
final int  programObj,
final PrintStream  verboseOut 
)
static

Performs GL2ES2#glValidateProgram(int).

One shall only call this method while debugging and only if all required resources by the shader are set.

Note: It is possible that a working shader program will fail validation. This has been experienced on NVidia APX2500 and Tegra2.

See also
GL2ES2::glValidateProgram(int)

Definition at line 133 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isProgramLinkStatusValid()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isProgramLinkStatusValid ( final GL  _gl,
final int  programObj,
final PrintStream  verboseOut 
)
static

Definition at line 104 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isProgramStatusValid()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isProgramStatusValid ( final GL  _gl,
final int  programObj,
final int  name 
)
static

Definition at line 96 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isShaderCompilerAvailable()

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isShaderCompilerAvailable ( final GL  _gl)
static

Returns true if a hader compiler is available, otherwise false.

Definition at line 185 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isShaderStatusValid() [1/2]

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isShaderStatusValid ( final GL  _gl,
final int  shaderObj,
final int  name,
final PrintStream  verboseOut 
)
static

Definition at line 76 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isShaderStatusValid() [2/2]

static boolean com.jogamp.opengl.util.glsl.ShaderUtil.isShaderStatusValid ( final GL  _gl,
final IntBuffer  shaders,
final int  name,
final PrintStream  verboseOut 
)
static

Definition at line 88 of file ShaderUtil.java.

Here is the call graph for this function:

◆ shaderBinary()

static void com.jogamp.opengl.util.glsl.ShaderUtil.shaderBinary ( final GL  _gl,
final IntBuffer  shaders,
final int  binFormat,
final java.nio.Buffer  bin 
)
static

Definition at line 276 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shaderSource() [1/2]

static void com.jogamp.opengl.util.glsl.ShaderUtil.shaderSource ( final GL  _gl,
final int  shader,
final CharSequence[]  source 
)
static

Definition at line 228 of file ShaderUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shaderSource() [2/2]

static void com.jogamp.opengl.util.glsl.ShaderUtil.shaderSource ( final GL  _gl,
final IntBuffer  shaders,
final CharSequence  sources[][] 
)
static

Definition at line 263 of file ShaderUtil.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: