Documentation ¶
Index ¶
- Constants
- type Extension
- type PresentInfo
- type PresentOutData
- type Swapchain
- type SwapchainCreateFlags
- type SwapchainCreateInfo
- type VulkanExtension
- func (e *VulkanExtension) APIVersion() common.APIVersion
- func (e *VulkanExtension) CreateSwapchain(device core1_0.Device, allocation *driver.AllocationCallbacks, ...) (Swapchain, common.VkResult, error)
- func (e *VulkanExtension) Driver() khr_swapchain_driver.Driver
- func (e *VulkanExtension) QueuePresent(queue core1_0.Queue, o PresentInfo) (common.VkResult, error)
Constants ¶
View Source
const ( ExtensionName string = C.VK_KHR_SWAPCHAIN_EXTENSION_NAME ObjectTypeSwapchain core1_0.ObjectType = C.VK_OBJECT_TYPE_SWAPCHAIN_KHR ImageLayoutPresentSrc core1_0.ImageLayout = C.VK_IMAGE_LAYOUT_PRESENT_SRC_KHR VKErrorOutOfDate common.VkResult = C.VK_ERROR_OUT_OF_DATE_KHR VKSuboptimal common.VkResult = C.VK_SUBOPTIMAL_KHR )
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 (PresentInfo) PopulateOutData ¶
func (o PresentInfo) PopulateOutData(cDataPointer unsafe.Pointer) error
type PresentOutData ¶
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 }
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 (e *VulkanExtension) Driver() khr_swapchain_driver.Driver
func (*VulkanExtension) QueuePresent ¶
func (e *VulkanExtension) QueuePresent(queue core1_0.Queue, o PresentInfo) (common.VkResult, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_swapchain is a generated GoMock package.
|
Package mock_swapchain is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.