device

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Memcpy

func Memcpy(dst, src unsafe.Pointer, n int) int

Types

type Memory

type Memory interface {
	Resource[core1_0.DeviceMemory]
	Read(offset int, data any) int
	Write(offset int, data any) int
	Flush()
	Invalidate()
}

type Resource

type Resource[T any] interface {
	Destroy()
	Ptr() T
}

type T

type T interface {
	Resource[core1_0.Device]

	Physical() core1_0.PhysicalDevice
	Allocate(key string, req core1_0.MemoryRequirements, flags core1_0.MemoryPropertyFlags) Memory
	GetQueue(queueIndex int, flags core1_0.QueueFlags) core1_0.Queue
	GetQueueFamilyIndex(flags core1_0.QueueFlags) int
	GetDepthFormat() core1_0.Format
	GetMemoryTypeIndex(uint32, core1_0.MemoryPropertyFlags) int
	GetLimits() *core1_0.PhysicalDeviceLimits
	WaitIdle()

	SetDebugObjectName(ptr driver.VulkanHandle, objType core1_0.ObjectType, name string)
}

func New

func New(instance instance.T, physDevice core1_0.PhysicalDevice) (T, error)

Jump to

Keyboard shortcuts

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