Class AEShaderCompiler
Compiles and creates of Shader objects in AE.
Inheritance
java.lang.Object
AEShaderCompiler
Syntax
public class AEShaderCompiler
Constructors
AEShaderCompiler()
Declaration
public AEShaderCompiler()
AEShaderCompiler(PrintStream _out)
Declaration
public AEShaderCompiler(PrintStream _out)
Parameters
Type |
Name |
Description |
PrintStream |
_out |
|
Fields
DEFAULT_SHADER_ASSET_DIRECTORY_PATH
Declaration
public static final PathHandle DEFAULT_SHADER_ASSET_DIRECTORY_PATH= new PathHandle("res/shaders/",
PathType.Internal)
Field Value
Methods
Declaration
public static void addUniform(AEShaderResource program, GLSLUniform uniform, Map<String, GLSLStruct> structs)
Parameters
Declaration
public static void addUniformBufferObject(AEShaderResource program, GLSLUniformBlockObject buffer, Map<String, GLSLStruct> structs)
Parameters
compile(AEShaderFileYAML p, PathHandle path)
Compiles and pre process the AE Shader file also auto adds uniforms and Must be run on render thread, and in proper context.
Declaration
public static AEShader compile(AEShaderFileYAML p, PathHandle path)
Parameters
Returns
printDeviceCapabilities()
Declaration
public static void printDeviceCapabilities()
printLibVersionInfo()
Declaration
public static void printLibVersionInfo()
setAttribLocation(int program, String attribName, int location)
Declaration
public static void setAttribLocation(int program, String attribName, int location)
Parameters
Type |
Name |
Description |
int |
program |
|
String |
attribName |
|
int |
location |
|