ResizableRenderTarget
class ResizableRenderTarget(width: Int, height: Int, contentScale: Double = 1.0, multisample: BufferMultisample = BufferMultisample.Disabled, session: Session?, val builder: RenderTargetBuilder.() -> Unit) : AutoCloseable(source)
A class that represents a render target capable of being resized dynamically.
This class manages a RenderTarget instance and allows its dimensions and content scale to be updated after creation. Existing GPU resources associated with the current RenderTarget are properly destroyed and the RenderTarget is reconstructed when resized.
Parameters
width
The initial width of the render target.
height
The initial height of the render target.
contentScale
The scaling factor for the render target's pixel density.
multisample
The multisample configuration for the render target.
session
The session managing the GPU resources of the render target. Can be null.
builder
A function used to configure the render target during its construction.
Constructors
Link copied to clipboard
constructor(width: Int, height: Int, contentScale: Double = 1.0, multisample: BufferMultisample = BufferMultisample.Disabled, session: Session?, builder: RenderTargetBuilder.() -> Unit)