| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_MVK_macos_surface
Synopsis
- createMacOSSurfaceMVK :: forall io. MonadIO io => Instance -> MacOSSurfaceCreateInfoMVK -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR
- data MacOSSurfaceCreateInfoMVK = MacOSSurfaceCreateInfoMVK {
- flags :: MacOSSurfaceCreateFlagsMVK
- view :: Ptr ()
- newtype MacOSSurfaceCreateFlagsMVK = MacOSSurfaceCreateFlagsMVK Flags
- type MVK_MACOS_SURFACE_SPEC_VERSION = 2
- pattern MVK_MACOS_SURFACE_SPEC_VERSION :: forall a. Integral a => a
- type MVK_MACOS_SURFACE_EXTENSION_NAME = "VK_MVK_macos_surface"
- pattern MVK_MACOS_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- newtype SurfaceKHR = SurfaceKHR Word64
Documentation
createMacOSSurfaceMVK :: forall io. MonadIO io => Instance -> MacOSSurfaceCreateInfoMVK -> ("allocator" ::: Maybe AllocationCallbacks) -> io SurfaceKHR Source #
vkCreateMacOSSurfaceMVK - Create a VkSurfaceKHR object for a macOS NSView
Parameters
instanceis the instance with which to associate the surface.
pCreateInfois a pointer to aMacOSSurfaceCreateInfoMVKstructure containing parameters affecting the creation of the surface object.pAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurfaceis a pointer to aSurfaceKHRhandle in which the created surface object is returned.
Valid Usage (Implicit)
instancemust be a validInstancehandle
pCreateInfomust be a valid pointer to a validMacOSSurfaceCreateInfoMVKstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validAllocationCallbacksstructure pSurfacemust be a valid pointer to aSurfaceKHRhandle
Return Codes
See Also
AllocationCallbacks,
Instance, MacOSSurfaceCreateInfoMVK,
SurfaceKHR
data MacOSSurfaceCreateInfoMVK Source #
VkMacOSSurfaceCreateInfoMVK - Structure specifying parameters of a newly created macOS surface object
Valid Usage (Implicit)
See Also
MacOSSurfaceCreateFlagsMVK,
StructureType,
createMacOSSurfaceMVK
Constructors
| MacOSSurfaceCreateInfoMVK | |
Fields
| |
Instances
newtype MacOSSurfaceCreateFlagsMVK Source #
Constructors
| MacOSSurfaceCreateFlagsMVK Flags |
Instances
type MVK_MACOS_SURFACE_SPEC_VERSION = 2 Source #
pattern MVK_MACOS_SURFACE_SPEC_VERSION :: forall a. Integral a => a Source #
type MVK_MACOS_SURFACE_EXTENSION_NAME = "VK_MVK_macos_surface" Source #
pattern MVK_MACOS_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
newtype SurfaceKHR Source #
VkSurfaceKHR - Opaque handle to a surface object
Description
The VK_KHR_surface extension declares the SurfaceKHR object, and
provides a function for destroying SurfaceKHR objects. Separate
platform-specific extensions each provide a function for creating a
SurfaceKHR object for the respective platform. From the application’s
perspective this is an opaque handle, just like the handles of other
Vulkan objects.
See Also
PhysicalDeviceSurfaceInfo2KHR,
SwapchainCreateInfoKHR,
createAndroidSurfaceKHR,
createDisplayPlaneSurfaceKHR,
createHeadlessSurfaceEXT,
createIOSSurfaceMVK,
createImagePipeSurfaceFUCHSIA,
createMacOSSurfaceMVK,
createMetalSurfaceEXT,
createStreamDescriptorSurfaceGGP,
createViSurfaceNN,
createWaylandSurfaceKHR,
createWin32SurfaceKHR,
createXcbSurfaceKHR,
createXlibSurfaceKHR,
destroySurfaceKHR,
getDeviceGroupSurfacePresentModesKHR,
getPhysicalDevicePresentRectanglesKHR,
getPhysicalDeviceSurfaceCapabilities2EXT,
getPhysicalDeviceSurfaceCapabilitiesKHR,
getPhysicalDeviceSurfaceFormatsKHR,
getPhysicalDeviceSurfacePresentModesKHR,
getPhysicalDeviceSurfaceSupportKHR
Constructors
| SurfaceKHR Word64 |