Static variables

@:value(true)staticALLOW_WEBGL2:Bool = true

@:value(false)statichasMultiIndirectCount:Bool = false

@:value(false)staticoutOfMemoryCheck:Bool = false

Perform OUT_OF_MEMORY checks when allocating textures/buffers. Default true, except in WebGL (false)

Constructor

@:has_untyped@:value({ antiAlias : 0 })new(antiAlias:Int = 0)

Variables

gl:GL

Methods

Inherited Variables

Defined by Driver

@:value(new h3d.impl.Upscaling(null, []))read onlyupscaling:Upscaling = new h3d.impl.Upscaling(null, [])

Inherited Methods

Defined by Driver

beginEvent(name:String):Void

@:value({ barrier : true, z : 1, y : 1, x : 1 })computeDispatch(x:Int = 1, y:Int = 1, z:Int = 1, barrier:Bool = true):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

endEvent():Void

endQuery(q:Query):Void

getMemoryUsage():Null<{total:Float, free:Float, allocated:Float}>

inlinelog(str:String):Void

removeEngine(engine:Engine):Void

selectBufferHandles(handles:Array<BufferHandle>):Void

selectTextureHandles(handles:Array<TextureHandle>):Void

setResidentMip(t:Texture, mip:Int):Bool

Reallocates the allocated texture so its most detailed mip level is mip, keeping the content of the mip levels common to both allocations. Returns false if not supported or out of memory, in which case the texture is unchanged. Requires the ResidentMips feature.