khr_swapchain

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: 3

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension interface {
	Driver() khr_swapchain_driver.Driver
	APIVersion() common.APIVersion

	CreateSwapchain(device core1_0.Device, allocation *driver.AllocationCallbacks, options SwapchainCreateInfo) (Swapchain, common.VkResult, error)
	QueuePresent(queue core1_0.Queue, o PresentInfo) (common.VkResult, error)
}

type PresentInfo

type PresentInfo struct {
	WaitSemaphores []core1_0.Semaphore
	Swapchains     []Swapchain
	ImageIndices   []int

	common.NextOptions

	OutData *PresentOutData
}

func (PresentInfo) PopulateCPointer

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

func (PresentInfo) PopulateOutData

func (o PresentInfo) PopulateOutData(cDataPointer unsafe.Pointer) error

type PresentOutData

type PresentOutData struct {
	Results []common.VkResult
}

type Swapchain

type Swapchain interface {
	Handle() khr_swapchain_driver.VkSwapchainKHR

	Destroy(callbacks *driver.AllocationCallbacks)
	SwapchainImages() ([]core1_0.Image, common.VkResult, error)
	AcquireNextImage(timeout time.Duration, semaphore core1_0.Semaphore, fence core1_0.Fence) (int, common.VkResult, error)
}

type SwapchainCreateFlags

type SwapchainCreateFlags int32

func (SwapchainCreateFlags) Register

func (f SwapchainCreateFlags) Register(str string)

func (SwapchainCreateFlags) String

func (f SwapchainCreateFlags) String() string

type SwapchainCreateInfo

type SwapchainCreateInfo struct {
	Surface ext_surface.Surface

	Flags SwapchainCreateFlags

	MinImageCount int

	ImageFormat      core1_0.Format
	ImageColorSpace  ext_surface.ColorSpace
	ImageExtent      core1_0.Extent2D
	ImageArrayLayers int
	ImageUsage       core1_0.ImageUsageFlags

	ImageSharingMode   core1_0.SharingMode
	QueueFamilyIndices []int

	PreTransform   ext_surface.SurfaceTransformFlags
	CompositeAlpha ext_surface.CompositeAlphaFlags
	PresentMode    ext_surface.PresentMode

	Clipped      bool
	OldSwapchain Swapchain

	common.NextOptions
}

func (SwapchainCreateInfo) PopulateCPointer

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

type VulkanExtension

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

func CreateExtensionFromDevice

func CreateExtensionFromDevice(device core1_0.Device) *VulkanExtension

func CreateExtensionFromDriver

func CreateExtensionFromDriver(driver khr_swapchain_driver.Driver) *VulkanExtension

func (*VulkanExtension) APIVersion

func (e *VulkanExtension) APIVersion() common.APIVersion

func (*VulkanExtension) CreateSwapchain

func (e *VulkanExtension) CreateSwapchain(device core1_0.Device, allocation *driver.AllocationCallbacks, options SwapchainCreateInfo) (Swapchain, common.VkResult, error)

func (*VulkanExtension) Driver

func (*VulkanExtension) QueuePresent

func (e *VulkanExtension) QueuePresent(queue core1_0.Queue, o PresentInfo) (common.VkResult, error)

Directories

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

Jump to

Keyboard shortcuts

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