VulkanRenderer

A GSK renderer that is using Vulkan.

This renderer will fail to realize if Vulkan is not supported.

class VulkanRenderer : Renderer {}

Constructors

this
this()

Inherited Members

From Renderer

newForSurface
gsk.renderer.Renderer newForSurface(gdk.surface.Surface surface)

Creates an appropriate gsk.renderer.Renderer instance for the given surface.

getSurface
gdk.surface.Surface getSurface()

Retrieves the gdk.surface.Surface set using gsk_enderer_realize().

isRealized
bool isRealized()

Checks whether the renderer is realized or not.

realize
bool realize(gdk.surface.Surface surface)

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

realizeForDisplay
bool realizeForDisplay(gdk.display.Display display)

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

render
void render(gsk.render_node.RenderNode root, cairo.region.Region region)

Renders the scene graph, described by a tree of gsk.render_node.RenderNode instances to the renderer's surface, ensuring that the given region gets redrawn.

renderTexture
gdk.texture.Texture renderTexture(gsk.render_node.RenderNode root, graphene.rect.Rect viewport)

Renders the scene graph, described by a tree of gsk.render_node.RenderNode instances, to a gdk.texture.Texture.

unrealize
void unrealize()

Releases all the resources created by gsk.renderer.Renderer.realize.