Package com.jogamp.opengl.util.glsl.sdk
Class CompileShader
java.lang.Object
com.jogamp.opengl.util.glsl.sdk.CompileShader
- Direct Known Subclasses:
CompileShaderNVidia
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
abstract String
abstract File
abstract String
void
processOneShader
(String resourceName) void
processOneShader
(String resourceName, String outName, int type) void
-
Constructor Details
-
CompileShader
public CompileShader()
-
-
Method Details
-
getBinaryFormat
public abstract int getBinaryFormat() -
getSDKCompilerDir
-
getVertexShaderCompiler
-
getFragmentShaderCompiler
-
processOneShader
public void processOneShader(String resourceName) throws IOException, UnsupportedEncodingException, InterruptedException -
processOneShader
public void processOneShader(String resourceName, String outName, int type) throws IOException, UnsupportedEncodingException, InterruptedException -
run
-