khr_external_memory

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ExtensionName is "VK_KHR_external_memory"
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_external_memory.html
	ExtensionName string = C.VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME

	// QueueFamilyExternal represents any Queue external to the resource's current Vulkan instance,
	// as long as the Queue uses the same underlying Device group or PhysicalDevice
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_QUEUE_FAMILY_EXTERNAL_KHR.html
	QueueFamilyExternal int = C.VK_QUEUE_FAMILY_EXTERNAL_KHR

	// VkErrorInvalidExternalHandle indicates an external handle is not a valid handle
	// of the specified type
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkResult.html
	VkErrorInvalidExternalHandle common.VkResult = C.VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportMemoryAllocateInfo

type ExportMemoryAllocateInfo struct {
	// HandleTypes specifies one or more memory handle types the application can export from
	// the resulting allocation
	HandleTypes khr_external_memory_capabilities.ExternalMemoryHandleTypeFlags

	common.NextOptions
}

ExportMemoryAllocateInfo specifies exportable handle types for a DeviceMemory object

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMemoryAllocateInfo.html

func (ExportMemoryAllocateInfo) PopulateCPointer

func (o ExportMemoryAllocateInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (ExportMemoryAllocateInfo) PopulateOutData

func (o ExportMemoryAllocateInfo) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

type ExternalMemoryBufferCreateInfo

type ExternalMemoryBufferCreateInfo struct {
	// HandleTypes specifies one or more external memory handle types
	HandleTypes khr_external_memory_capabilities.ExternalMemoryHandleTypeFlags

	common.NextOptions
}

ExternalMemoryBufferCreateInfo specifies that a Buffer may be backed by external memory

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExternalMemoryBufferCreateInfo.html

func (ExternalMemoryBufferCreateInfo) PopulateCPointer

func (o ExternalMemoryBufferCreateInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (ExternalMemoryBufferCreateInfo) PopulateOutData

func (o ExternalMemoryBufferCreateInfo) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

type ExternalMemoryImageCreateInfo

type ExternalMemoryImageCreateInfo struct {
	// HandleTypes specifies one or more external memory handle types
	HandleTypes khr_external_memory_capabilities.ExternalMemoryHandleTypeFlags

	common.NextOptions
}

ExternalMemoryImageCreateInfo specifies that an Image may be backed by external memory

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExternalMemoryImageCreateInfo.html

func (ExternalMemoryImageCreateInfo) PopulateCPointer

func (o ExternalMemoryImageCreateInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (ExternalMemoryImageCreateInfo) PopulateOutData

func (o ExternalMemoryImageCreateInfo) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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