khr_deferred_host_operations

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExtensionName is "VK_KHR_deferred_host_operations"
	//
	// https://docs.vulkan.org/refpages/latest/refpages/source/VK_KHR_deferred_host_operations.html
	ExtensionName string = C.VK_KHR_DEFERRED_HOST_OPERATIONS_EXTENSION_NAME

	// VkOperationDeferred indicates that a deferred operation was requested and at least some of the work
	// was deferred.
	//
	// https://docs.vulkan.org/refpages/latest/refpages/source/VkResult.html
	VkOperationDeferred common.VkResult = C.VK_OPERATION_DEFERRED_KHR
	// VkOperationNotDeferred indicates that a operation was requested and no operations were deferred.
	//
	// https://docs.vulkan.org/refpages/latest/refpages/source/VkResult.html
	VkOperationNotDeferred common.VkResult = C.VK_OPERATION_NOT_DEFERRED_KHR
	// VkThreadDone indicates that a deferred operation is not complete but there is no work remaining to assign
	// to additional threads.
	//
	// https://docs.vulkan.org/refpages/latest/refpages/source/VkResult.html
	VkThreadDone common.VkResult = C.VK_THREAD_DONE_KHR
	// VkThreadIdle indicates that a deferred operation is not complete but there is currently
	// no work for this thread to do at the time of this call.
	//
	// https://docs.vulkan.org/refpages/latest/refpages/source/VkResult.html
	VkThreadIdle common.VkResult = C.VK_THREAD_IDLE_KHR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferredOperation

type DeferredOperation struct {
	// contains filtered or unexported fields
}

func (DeferredOperation) APIVersion

func (s DeferredOperation) APIVersion() common.APIVersion

func (DeferredOperation) DeviceHandle

func (s DeferredOperation) DeviceHandle() loader.VkDevice

func (DeferredOperation) Initialized

func (s DeferredOperation) Initialized() bool

type ExtensionDriver

type ExtensionDriver interface {
	CreateDeferredOperation(callbacks *loader.AllocationCallbacks) (DeferredOperation, common.VkResult, error)
	DestroyDeferredOperation(operation DeferredOperation, callbacks *loader.AllocationCallbacks)
	DeferredOperationJoin(operation DeferredOperation) (common.VkResult, error)
	GetDeferredOperationResult(operation DeferredOperation) (common.VkResult, error)
	GetDeferredOperationMaxConcurrency(operation DeferredOperation) int
}

func CreateExtensionDriverFromCoreDriver

func CreateExtensionDriverFromCoreDriver(driver core1_0.DeviceDriver) ExtensionDriver

CreateExtensionDriverFromCoreDriver produces an ExtensionDriver object from a Device with khr_deferred_host_operations loaded

type VulkanExtensionDriver

type VulkanExtensionDriver struct {
	// contains filtered or unexported fields
}

func CreateExtensionDriverFromLoader

func CreateExtensionDriverFromLoader(loader khr_deferred_host_operations_loader.Loader, device core1_0.Device) *VulkanExtensionDriver

CreateExtensionDriverFromLoader generates an ExtensionDriver from a loader.Loader object- this is usually used in tests to build an ExtensionDriver from mock drivers

func (*VulkanExtensionDriver) CreateDeferredOperation

func (v *VulkanExtensionDriver) CreateDeferredOperation(callbacks *loader.AllocationCallbacks) (DeferredOperation, common.VkResult, error)

func (*VulkanExtensionDriver) DeferredOperationJoin

func (v *VulkanExtensionDriver) DeferredOperationJoin(operation DeferredOperation) (common.VkResult, error)

func (*VulkanExtensionDriver) DestroyDeferredOperation

func (v *VulkanExtensionDriver) DestroyDeferredOperation(operation DeferredOperation, callbacks *loader.AllocationCallbacks)

func (*VulkanExtensionDriver) GetDeferredOperationMaxConcurrency

func (v *VulkanExtensionDriver) GetDeferredOperationMaxConcurrency(operation DeferredOperation) int

func (*VulkanExtensionDriver) GetDeferredOperationResult

func (v *VulkanExtensionDriver) GetDeferredOperationResult(operation DeferredOperation) (common.VkResult, error)

Directories

Path Synopsis
Package mock_deferred_host_operations is a generated GoMock package.
Package mock_deferred_host_operations is a generated GoMock package.

Jump to

Keyboard shortcuts

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