new(shaderData:ShaderData)
Create new Shader from shader's data
Parameters:
shaderData
Shader's data
constants:Array<ConstantData>
@:value([])constantsLocations:Array<Map<ConstantLocation, ConstantData>> = []
fragmentShader:FragmentShader
@:value([])textureUnits:Array<Map<TextureUnit, ConstantData>> = []
begin(canvas:Canvas):Void
end(canvas:Canvas):Void
getPipeline():PipelineState
Get pipeline of shader.
render(canvas:Canvas, render:() ‑> Void):Void
Render the shader.
canvas
null
render