graph

package
v0.0.0-...-124f97e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecreate = errors.New("recreate renderer")

Functions

This section is empty.

Types

type Node

type Node interface {
	After(nd Node, mask core1_0.PipelineStageFlags)
	Before(nd Node, mask core1_0.PipelineStageFlags, signal []sync.Semaphore)
	Requires() []Node
	Dependants() []Node

	Name() string
	Draw(command.Worker, render.Args, object.Component)
	Detach(Node)
	Destroy()
}

type NodeFunc

type NodeFunc func(T, vulkan.Target) []Resource

type NodePass

type NodePass interface {
	Name() string
	Record(command.Recorder, render.Args, object.Component)
	Destroy()
}

type PreDrawable

type PreDrawable interface {
	object.Component
	PreDraw(render.Args, object.Object) error
}

type Resource

type Resource interface {
	Destroy()
}

type T

type T interface {
	Node(pass NodePass) Node
	Recreate()
	Draw(scene object.Object, time, delta float32)
	Destroy()
	Screengrab() *image.RGBA
	Screenshot()
}

The render graph is responsible for synchronization between different render nodes.

func Default

func Default(app vulkan.App, target vulkan.Target) T

Instantiates the default render graph

func New

func New(app vulkan.App, output vulkan.Target, init NodeFunc) T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL