VulkanRenderer

A GSK renderer that is using Vulkan.

Constructors

this
this(GskVulkanRenderer* gskVulkanRenderer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getVulkanRendererStruct
GskVulkanRenderer* getVulkanRendererStruct(bool transferOwnership)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

gskVulkanRenderer
GskVulkanRenderer* gskVulkanRenderer;

the main Gtk struct

Inherited Members

From Renderer

gskRenderer
GskRenderer* gskRenderer;

the main Gtk struct

getRendererStruct
GskRenderer* getRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getSurface
Surface getSurface()

Retrieves the GdkSurface set using gsk_enderer_realize().

isRealized
bool isRealized()

Checks whether the @renderer is realized or not.

realize
bool realize(Surface surface)

Creates the resources needed by the @renderer to render the scene graph.

render
void render(RenderNode root, Region region)

Renders the scene graph, described by a tree of GskRenderNode instances, ensuring that the given @region gets redrawn.

renderTexture
Texture renderTexture(RenderNode root, Rect viewport)

Renders the scene graph, described by a tree of GskRenderNode instances, to a GdkTexture.

unrealize
void unrealize()

Releases all the resources created by gsk_renderer_realize().

Meta