Ashet OS

async_call: ashet.draw.Render

Documentation

Renders the provided Ashet Graphics Protocol sequence into target framebuffer.

The function will run asynchronously and will return as soon as the rendering is done.

Note:

On machines without hardware acceleration, this syscall might be completed synchronously.

Inputs

target: Framebuffer

The framebuffer which should be drawn to.

sequence: bytestr

The AGP code that defines the drawing.

auto_invalidate: bool

If the target framebuffer is invalidatable, it is automatically invalidated after the completion of the command sequence, ensuring presentation of the contents.

This is useful when painting into widgets or windows to ensure the window manager actually sees the changes as soon as they are done, reducing graphics pipeline latency.

Errors

BadCode
InvalidHandle