Documentation
¶
Overview ¶
Package vulkan implementes the API interface for the Vulkan graphics library.
Index ¶
- Constants
- func AddCommand(ctx context.Context, cb CommandBuilder, commandBuffer VkCommandBuffer, ...) (func(), api.Cmd)
- func EnterRecreate(ctx context.Context, s *api.GlobalState) func()
- func GetCommandArgs(ctx context.Context, cr CommandReference, c *api.GlobalState) interface{}
- type CommandBufferCommand
- type CommandBufferCommands
- type CustomState
- type FootprintBuilder
- type MarkerType
- type QueuedCommand
- type VulkanContext
- type VulkanTerminator
Constants ¶
const ( DebugMarker = iota RenderPassMarker )
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddCommand(ctx context.Context, cb CommandBuilder, commandBuffer VkCommandBuffer, s *api.GlobalState, rebuildInfo interface{}) (func(), api.Cmd)
AddCommand recreates the command defined by recreateInfo and places it into the given command buffer. It returns the atoms that it had to create in order to satisfy the command. It also returns a function to clean up the data that was allocated during the creation.
func EnterRecreate ¶ added in v0.5.0
func EnterRecreate(ctx context.Context, s *api.GlobalState) func()
func GetCommandArgs ¶ added in v0.6.2
func GetCommandArgs(ctx context.Context, cr CommandReference, c *api.GlobalState) interface{}
Types ¶
type CommandBufferCommand ¶
type CommandBufferCommand struct {
// contains filtered or unexported fields
}
type CommandBufferCommands ¶
type CommandBufferCommands []CommandBufferCommand
type CustomState ¶
type FootprintBuilder ¶ added in v0.6.0
type FootprintBuilder struct {
// contains filtered or unexported fields
}
FootprintBuilder implements the FootprintBuilder interface and builds Footprint for Vulkan commands.
func (*FootprintBuilder) BuildFootprint ¶ added in v0.6.0
func (vb *FootprintBuilder) BuildFootprint(ctx context.Context, s *api.GlobalState, ft *dependencygraph.Footprint, id api.CmdID, cmd api.Cmd)
BuildFootprint incrementally builds the given Footprint with the given command specified with api.CmdID and api.Cmd.
type MarkerType ¶ added in v0.6.1
type MarkerType int
type QueuedCommand ¶ added in v0.6.2
type QueuedCommand struct {
// contains filtered or unexported fields
}
type VulkanContext ¶
type VulkanContext struct{}
func (VulkanContext) API ¶ added in v0.6.1
func (VulkanContext) API() api.API
API returns the vulkan API.
func (VulkanContext) ID ¶
func (VulkanContext) ID() api.ContextID
ID returns the context's unique identifier.
func (VulkanContext) Name ¶
func (VulkanContext) Name() string
Name returns the display-name of the context.
type VulkanTerminator ¶
type VulkanTerminator struct {
// contains filtered or unexported fields
}
VulkanTerminator is very similar to EarlyTerminator. It has 2 additional properties.
- If a VkQueueSubmit is found, and it contains an event that will be signaled after the final request, we remove the event from the command-list, and remove any subsequent events
- If a request is made to replay until the MIDDLE of a vkQueueSubmit, then it will patch that command-list to remove any commands after the command in question. Furthermore it will continue the replay until that command can be run i.e. it will make sure to continue to mutate the trace until all pending events have been successfully completed. TODO(awoloszyn): Handle #2
This takes advantage of the fact that all atoms will be in order.
func NewVulkanTerminator ¶
func (*VulkanTerminator) Add ¶
Add adds the command with identifier id to the set of commands that must be seen before the VulkanTerminator will consume all commands (excluding the EOS command).