Static variables
Static methods
Constructor
Variables
depthBuffer:DepthBuffer
When the texture is used as render target, tells which depth buffer will be used. If set to null, depth testing is disabled.
Methods
capturePixels(face:Int = 0, mipLevel:Int = 0, ?region:IBounds):Pixels
Downloads the current texture data from the GPU. Beware, this is a very slow operation that shouldn't be done during rendering.
preventAutoDispose():Void
In case of out of GPU memory, textures that hasn't been used for a long time will be disposed. Calling this will make this texture not considered for auto disposal.