khr_surface

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: 7 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ExtensionName string = C.VK_KHR_SURFACE_EXTENSION_NAME

	ObjectTypeSurface core1_0.ObjectType = C.VK_OBJECT_TYPE_SURFACE_KHR

	TransformIdentity                  SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
	TransformRotate90                  SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR
	TransformRotate180                 SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR
	TransformRotate270                 SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR
	TransformHorizontalMirror          SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR
	TransformHorizontalMirrorRotate90  SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR
	TransformHorizontalMirrorRotate180 SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR
	TransformHorizontalMirrorRotate270 SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR
	TransformInherit                   SurfaceTransformFlags = C.VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR

	CompositeAlphaOpaque         CompositeAlphaFlags = C.VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR
	CompositeAlphaPreMultiplied  CompositeAlphaFlags = C.VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR
	CompositeAlphaPostMultiplied CompositeAlphaFlags = C.VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR
	CompositeAlphaInherit        CompositeAlphaFlags = C.VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR

	PresentModeImmediate   PresentMode = C.VK_PRESENT_MODE_IMMEDIATE_KHR
	PresentModeMailbox     PresentMode = C.VK_PRESENT_MODE_MAILBOX_KHR
	PresentModeFIFO        PresentMode = C.VK_PRESENT_MODE_FIFO_KHR
	PresentModeFIFORelaxed PresentMode = C.VK_PRESENT_MODE_FIFO_RELAXED_KHR

	ColorSpaceSRGBNonlinear ColorSpace = C.VK_COLOR_SPACE_SRGB_NONLINEAR_KHR

	VKErrorSurfaceLost       common.VkResult = C.VK_ERROR_SURFACE_LOST_KHR
	VKErrorNativeWindowInUse common.VkResult = C.VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	MinImageCount int
	MaxImageCount int

	CurrentExtent  core1_0.Extent2D
	MinImageExtent core1_0.Extent2D
	MaxImageExtent core1_0.Extent2D

	MaxImageArrayLayers int
	SupportedTransforms SurfaceTransformFlags
	CurrentTransform    SurfaceTransformFlags

	SupportedCompositeAlpha CompositeAlphaFlags
	SupportedImageUsage     core1_0.ImageUsageFlags
}

type ColorSpace

type ColorSpace int32

func (ColorSpace) Register

func (e ColorSpace) Register(str string)

func (ColorSpace) String

func (e ColorSpace) String() string

type CompositeAlphaFlags

type CompositeAlphaFlags int32

func (CompositeAlphaFlags) Register

func (e CompositeAlphaFlags) Register(str string)

func (CompositeAlphaFlags) String

func (e CompositeAlphaFlags) String() string

type Format

type Format struct {
	Format     core1_0.Format
	ColorSpace ColorSpace
}

type PresentMode

type PresentMode int32

func (PresentMode) Register

func (e PresentMode) Register(str string)

func (PresentMode) String

func (e PresentMode) String() string

type Surface

type Surface interface {
	Handle() ext_driver.VkSurfaceKHR

	Destroy(callbacks *driver.AllocationCallbacks)
	PhysicalDeviceSurfaceSupport(physicalDevice core1_0.PhysicalDevice, queueFamilyIndex int) (bool, common.VkResult, error)
	PhysicalDeviceSurfaceCapabilities(device core1_0.PhysicalDevice) (*Capabilities, common.VkResult, error)
	PhysicalDeviceSurfaceFormats(device core1_0.PhysicalDevice) ([]Format, common.VkResult, error)
	PhysicalDeviceSurfacePresentModes(device core1_0.PhysicalDevice) ([]PresentMode, common.VkResult, error)
}

func CreateSurface

func CreateSurface(surfacePtr unsafe.Pointer, instance core1_0.Instance, surfaceDriver ext_driver.Driver) (Surface, common.VkResult, error)

type SurfaceTransformFlags

type SurfaceTransformFlags int32

func (SurfaceTransformFlags) Register

func (f SurfaceTransformFlags) Register(str string)

func (SurfaceTransformFlags) String

func (f SurfaceTransformFlags) String() string

Directories

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

Jump to

Keyboard shortcuts

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