JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.glsl.sdk.CompileShader Class Referenceabstract

Precompiles a shader into a vendor binary format. More...

Inheritance diagram for com.jogamp.opengl.util.glsl.sdk.CompileShader:
Collaboration diagram for com.jogamp.opengl.util.glsl.sdk.CompileShader:

Public Member Functions

abstract int getBinaryFormat ()
 
abstract File getSDKCompilerDir ()
 
abstract String getVertexShaderCompiler ()
 
abstract String getFragmentShaderCompiler ()
 
void processOneShader (final String resourceName) throws IOException, UnsupportedEncodingException, InterruptedException
 
void processOneShader (final String resourceName, final String outName, final int type) throws IOException, UnsupportedEncodingException, InterruptedException
 
void run (final String[] args)
 

Static Protected Member Functions

static String basename (final String path)
 
static String dirname (final String path)
 

Detailed Description

Precompiles a shader into a vendor binary format.

Input is the resource name of the shader, such as "com/jogamp/opengl/impl/glsl/fixed/shader/a.fp". Output is "com/jogamp/opengl/impl/glsl/fixed/shader/bin/nvidia/a.bfp".

All path and suffixes are determined by the ShaderCode class, which ensures runtime compatibility.

See also
com.jogamp.opengl.util.glsl.ShaderCode

Definition at line 23 of file CompileShader.java.

Member Function Documentation

◆ basename()

static String com.jogamp.opengl.util.glsl.sdk.CompileShader.basename ( final String  path)
staticprotected

Definition at line 118 of file CompileShader.java.

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

◆ dirname()

static String com.jogamp.opengl.util.glsl.sdk.CompileShader.dirname ( final String  path)
staticprotected

Definition at line 132 of file CompileShader.java.

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

◆ getBinaryFormat()

abstract int com.jogamp.opengl.util.glsl.sdk.CompileShader.getBinaryFormat ( )
abstract

Reimplemented in com.jogamp.opengl.util.glsl.sdk.CompileShaderNVidia.

Here is the caller graph for this function:

◆ getFragmentShaderCompiler()

abstract String com.jogamp.opengl.util.glsl.sdk.CompileShader.getFragmentShaderCompiler ( )
abstract

Reimplemented in com.jogamp.opengl.util.glsl.sdk.CompileShaderNVidia.

Here is the caller graph for this function:

◆ getSDKCompilerDir()

abstract File com.jogamp.opengl.util.glsl.sdk.CompileShader.getSDKCompilerDir ( )
abstract

Reimplemented in com.jogamp.opengl.util.glsl.sdk.CompileShaderNVidia.

Here is the caller graph for this function:

◆ getVertexShaderCompiler()

abstract String com.jogamp.opengl.util.glsl.sdk.CompileShader.getVertexShaderCompiler ( )
abstract

Reimplemented in com.jogamp.opengl.util.glsl.sdk.CompileShaderNVidia.

Here is the caller graph for this function:

◆ processOneShader() [1/2]

void com.jogamp.opengl.util.glsl.sdk.CompileShader.processOneShader ( final String  resourceName) throws IOException, UnsupportedEncodingException, InterruptedException

Definition at line 33 of file CompileShader.java.

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

◆ processOneShader() [2/2]

void com.jogamp.opengl.util.glsl.sdk.CompileShader.processOneShader ( final String  resourceName,
final String  outName,
final int  type 
) throws IOException, UnsupportedEncodingException, InterruptedException

Definition at line 64 of file CompileShader.java.

Here is the call graph for this function:

◆ run()

void com.jogamp.opengl.util.glsl.sdk.CompileShader.run ( final String[]  args)

Definition at line 146 of file CompileShader.java.

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

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