Static methods

staticsetShaderCache(cache:ShaderCache):Void

Variables

Methods

allocInstanceBuffer(b:InstanceBuffer, bytes:Bytes):Void

begin(frame:Int):Void

capturePixels(tex:Texture, layer:Int, mipLevel:Int, ?region:IBounds):Pixels

clear(?color:Vector4, ?depth:Float, ?stencil:Int):Void

@:value({ z : 1, y : 1, x : 1 })computeDispatch(x:Int = 1, y:Int = 1, z:Int = 1):Void

copyTexture(from:Texture, to:Texture):Bool

Returns true if we could copy the texture, false otherwise (not supported by driver or mismatch in size/format)

dispose():Void

draw(ibuf:Buffer, startIndex:Int, ntriangles:Int):Void

drawInstanced(ibuf:Buffer, commands:InstanceBuffer):Void

end():Void

endQuery(q:Query):Void

generateMipMaps(texture:Texture):Void

getDriverName(details:Bool):String

@:value({ forceSoftware : false })init(onCreate:Bool ‑> Void, forceSoftware:Bool = false):Void

isDisposed():Bool

inlinelog(str:String):Void

present():Void

readBufferBytes(b:Buffer, startVertex:Int, vertexCount:Int, buf:Bytes, bufPos:Int):Void

resize(width:Int, height:Int):Void

selectBuffer(buffer:Buffer):Void

selectMaterial(pass:Pass):Void

selectMultiBuffers(format:MultiFormat, buffers:Array<Buffer>):Void

setDebug(b:Bool):Void

setDepth(tex:Null<Texture>):Void

setRenderFlag(r:RenderFlag, value:Int):Void

@:value({ depthBinding : ReadWrite, mipLevel : 0, layer : 0 })setRenderTarget(tex:Null<Texture>, layer:Int = 0, mipLevel:Int = 0, depthBinding:DepthBinding = ReadWrite):Void

@:value({ depthBinding : ReadWrite })setRenderTargets(textures:Array<Texture>, depthBinding:DepthBinding = ReadWrite):Void

setRenderZone(x:Int, y:Int, width:Int, height:Int):Void

uploadBufferBytes(b:Buffer, startVertex:Int, vertexCount:Int, buf:Bytes, bufPos:Int):Void

uploadBufferData(b:Buffer, startVertex:Int, vertexCount:Int, buf:FloatBuffer, bufPos:Int):Void

uploadIndexData(i:Buffer, startIndice:Int, indiceCount:Int, buf:IndexBuffer, bufPos:Int):Void

uploadTextureBitmap(t:Texture, bmp:BitmapData, mipLevel:Int, side:Int):Void

uploadTexturePixels(t:Texture, pixels:Pixels, mipLevel:Int, side:Int):Void