khr_device_group

package
v0.0.0-...-0931f86 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExtensionName string = C.VK_KHR_DEVICE_GROUP_EXTENSION_NAME

	DependencyDeviceGroup core1_0.DependencyFlags = C.VK_DEPENDENCY_DEVICE_GROUP_BIT_KHR

	MemoryAllocateDeviceMask MemoryAllocateFlags = C.VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT_KHR

	DeviceGroupPresentModeLocal            DeviceGroupPresentModeFlags = C.VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR
	DeviceGroupPresentModeRemote           DeviceGroupPresentModeFlags = C.VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR
	DeviceGroupPresentModeSum              DeviceGroupPresentModeFlags = C.VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR
	DeviceGroupPresentModeLocalMultiDevice DeviceGroupPresentModeFlags = C.VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR

	PeerMemoryFeatureCopyDst    PeerMemoryFeatures = C.VK_PEER_MEMORY_FEATURE_COPY_DST_BIT_KHR
	PeerMemoryFeatureCopySrc    PeerMemoryFeatures = C.VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT_KHR
	PeerMemoryFeatureGenericDst PeerMemoryFeatures = C.VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT_KHR
	PeerMemoryFeatureGenericSrc PeerMemoryFeatures = C.VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT_KHR

	PipelineCreateDispatchBase             core1_0.PipelineCreateFlags = C.VK_PIPELINE_CREATE_DISPATCH_BASE_KHR
	PipelineCreateViewIndexFromDeviceIndex core1_0.PipelineCreateFlags = C.VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHR

	ImageCreateSplitInstanceBindRegions core1_0.ImageCreateFlags = C.VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR

	SwapchainCreateSplitInstanceBindRegions khr_swapchain.SwapchainCreateFlags = C.VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireNextImageInfo

type AcquireNextImageInfo struct {
	Swapchain  khr_swapchain.Swapchain
	Timeout    time.Duration
	Semaphore  core1_0.Semaphore
	Fence      core1_0.Fence
	DeviceMask uint32

	common.NextOptions
}

func (AcquireNextImageInfo) PopulateCPointer

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

type BindBufferMemoryDeviceGroupInfo

type BindBufferMemoryDeviceGroupInfo struct {
	DeviceIndices []int

	common.NextOptions
}

func (BindBufferMemoryDeviceGroupInfo) PopulateCPointer

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

type BindImageMemoryDeviceGroupInfo

type BindImageMemoryDeviceGroupInfo struct {
	DeviceIndices            []int
	SplitInstanceBindRegions []core1_0.Rect2D

	common.NextOptions
}

func (BindImageMemoryDeviceGroupInfo) PopulateCPointer

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

type BindImageMemorySwapchainInfo

type BindImageMemorySwapchainInfo struct {
	Swapchain  khr_swapchain.Swapchain
	ImageIndex int

	common.NextOptions
}

func (BindImageMemorySwapchainInfo) PopulateCPointer

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

type DeviceGroupBindSparseInfo

type DeviceGroupBindSparseInfo struct {
	ResourceDeviceIndex int
	MemoryDeviceIndex   int

	common.NextOptions
}

func (DeviceGroupBindSparseInfo) PopulateCPointer

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

type DeviceGroupCommandBufferBeginInfo

type DeviceGroupCommandBufferBeginInfo struct {
	DeviceMask uint32

	common.NextOptions
}

func (DeviceGroupCommandBufferBeginInfo) PopulateCPointer

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

type DeviceGroupPresentCapabilities

type DeviceGroupPresentCapabilities struct {
	PresentMask [khr_device_group_creation.MaxDeviceGroupSize]uint32
	Modes       DeviceGroupPresentModeFlags

	common.NextOutData
}

func (*DeviceGroupPresentCapabilities) PopulateHeader

func (o *DeviceGroupPresentCapabilities) PopulateHeader(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (*DeviceGroupPresentCapabilities) PopulateOutData

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

type DeviceGroupPresentInfo

type DeviceGroupPresentInfo struct {
	DeviceMasks []uint32
	Mode        DeviceGroupPresentModeFlags

	common.NextOptions
}

func (DeviceGroupPresentInfo) PopulateCPointer

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

type DeviceGroupPresentModeFlags

type DeviceGroupPresentModeFlags int32

func (DeviceGroupPresentModeFlags) Register

func (f DeviceGroupPresentModeFlags) Register(str string)

func (DeviceGroupPresentModeFlags) String

type DeviceGroupRenderPassBeginInfo

type DeviceGroupRenderPassBeginInfo struct {
	DeviceMask        uint32
	DeviceRenderAreas []core1_0.Rect2D

	common.NextOptions
}

func (DeviceGroupRenderPassBeginInfo) PopulateCPointer

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

type DeviceGroupSubmitInfo

type DeviceGroupSubmitInfo struct {
	WaitSemaphoreDeviceIndices   []int
	CommandBufferDeviceMasks     []uint32
	SignalSemaphoreDeviceIndices []int

	common.NextOptions
}

func (DeviceGroupSubmitInfo) PopulateCPointer

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

type DeviceGroupSwapchainCreateInfo

type DeviceGroupSwapchainCreateInfo struct {
	Modes DeviceGroupPresentModeFlags

	common.NextOptions
}

func (DeviceGroupSwapchainCreateInfo) PopulateCPointer

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

type Extension

type Extension interface {
	CmdDispatchBase(commandBuffer core1_0.CommandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ int)
	CmdSetDeviceMask(commandBuffer core1_0.CommandBuffer, deviceMask uint32)
	DeviceGroupPeerMemoryFeatures(device core1_0.Device, heapIndex, localDeviceIndex, remoteDeviceIndex int) PeerMemoryFeatures

	WithKHRSurface() ExtensionWithKHRSurface
	WithKHRSwapchain() ExtensionWithKHRSwapchain
}

type ExtensionWithKHRSurface

type ExtensionWithKHRSurface interface {
	DeviceGroupPresentCapabilities(device core1_0.Device, outData *DeviceGroupPresentCapabilities) (common.VkResult, error)
	DeviceGroupSurfacePresentModes(device core1_0.Device, surface khr_surface.Surface) (DeviceGroupPresentModeFlags, common.VkResult, error)
	PhysicalDevicePresentRectangles(physicalDevice core1_0.PhysicalDevice, surface khr_surface.Surface) ([]core1_0.Rect2D, common.VkResult, error)
}

type ExtensionWithKHRSwapchain

type ExtensionWithKHRSwapchain interface {
	AcquireNextImage2(device core1_0.Device, o AcquireNextImageInfo) (int, common.VkResult, error)
}

type ImageSwapchainCreateInfo

type ImageSwapchainCreateInfo struct {
	Swapchain khr_swapchain.Swapchain

	common.NextOptions
}

func (ImageSwapchainCreateInfo) PopulateCPointer

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

type MemoryAllocateFlags

type MemoryAllocateFlags int32

func (MemoryAllocateFlags) Register

func (f MemoryAllocateFlags) Register(str string)

func (MemoryAllocateFlags) String

func (f MemoryAllocateFlags) String() string

type MemoryAllocateFlagsInfo

type MemoryAllocateFlagsInfo struct {
	Flags      MemoryAllocateFlags
	DeviceMask uint32

	common.NextOptions
}

func (MemoryAllocateFlagsInfo) PopulateCPointer

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

type PeerMemoryFeatures

type PeerMemoryFeatures int32

func (PeerMemoryFeatures) Register

func (f PeerMemoryFeatures) Register(str string)

func (PeerMemoryFeatures) String

func (f PeerMemoryFeatures) String() string

type VulkanExtension

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

func CreateExtensionFromDevice

func CreateExtensionFromDevice(device core1_0.Device, instance core1_0.Instance) *VulkanExtension

func CreateExtensionFromDriver

func CreateExtensionFromDriver(driver khr_device_group_driver.Driver, khrSurfaceInteraction bool, khrSwapchainInteraction bool) *VulkanExtension

func (*VulkanExtension) CmdDispatchBase

func (v *VulkanExtension) CmdDispatchBase(commandBuffer core1_0.CommandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ int)

func (*VulkanExtension) CmdSetDeviceMask

func (v *VulkanExtension) CmdSetDeviceMask(commandBuffer core1_0.CommandBuffer, deviceMask uint32)

func (*VulkanExtension) DeviceGroupPeerMemoryFeatures

func (v *VulkanExtension) DeviceGroupPeerMemoryFeatures(device core1_0.Device, heapIndex, localDeviceIndex, remoteDeviceIndex int) PeerMemoryFeatures

func (*VulkanExtension) WithKHRSurface

func (v *VulkanExtension) WithKHRSurface() ExtensionWithKHRSurface

func (*VulkanExtension) WithKHRSwapchain

func (v *VulkanExtension) WithKHRSwapchain() ExtensionWithKHRSwapchain

type VulkanExtensionWithKHRSurface

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

func (*VulkanExtensionWithKHRSurface) DeviceGroupPresentCapabilities

func (v *VulkanExtensionWithKHRSurface) DeviceGroupPresentCapabilities(device core1_0.Device, outData *DeviceGroupPresentCapabilities) (common.VkResult, error)

func (*VulkanExtensionWithKHRSurface) DeviceGroupSurfacePresentModes

func (v *VulkanExtensionWithKHRSurface) DeviceGroupSurfacePresentModes(device core1_0.Device, surface khr_surface.Surface) (DeviceGroupPresentModeFlags, common.VkResult, error)

func (*VulkanExtensionWithKHRSurface) PhysicalDevicePresentRectangles

func (v *VulkanExtensionWithKHRSurface) PhysicalDevicePresentRectangles(physicalDevice core1_0.PhysicalDevice, surface khr_surface.Surface) ([]core1_0.Rect2D, common.VkResult, error)

type VulkanExtensionWithKHRSwapchain

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

func (*VulkanExtensionWithKHRSwapchain) AcquireNextImage2

Directories

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

Jump to

Keyboard shortcuts

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