Constructor

new()

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

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

begin(frame:Int):Void

beginEvent(name:String):Void

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

clear(?color:Vector4, ?depth:Float, ?stencil:Int):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

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

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

end():Void

endEvent():Void

endQuery(q:Query):Void

generateMipMaps(texture:Texture):Void

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

inlinelog(str:String):Void

present():Void

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

readBufferBytesAsync(b:Buffer, startVertex:Int, vertexCount:Int, buf:Bytes, bufPos:Int, callback:() ‑> Void):Void

removeEngine(engine:Engine):Void

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

selectBuffer(buffer:Buffer):Void

selectBufferHandles(handles:Array<BufferHandle>):Void

selectMaterial(pass:Pass):Void

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

selectTextureHandles(handles:Array<TextureHandle>):Void

setDebug(b:Bool):Void

@:value({ layer : 0 })setDepth(tex:Null<Texture>, layer:Int = 0):Void

setDepthBias(depthBias:Float, slopeScaledBias:Float):Void

setDepthClamp(enabled:Bool):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

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.

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

uploadInstanceBufferBytes(b:InstanceBuffer, startVertex:Int, vertexCount:Int, buf:Bytes, bufPos:Int):Void

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

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