Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- createMetalSurfaceEXT :: Instance -> MetalSurfaceCreateInfoEXT -> ("allocator" ::: Maybe AllocationCallbacks) -> IO SurfaceKHR
- data MetalSurfaceCreateInfoEXT = MetalSurfaceCreateInfoEXT {}
- newtype MetalSurfaceCreateFlagsEXT = MetalSurfaceCreateFlagsEXT Flags
- type EXT_METAL_SURFACE_SPEC_VERSION = 1
- pattern EXT_METAL_SURFACE_SPEC_VERSION :: forall a. Integral a => a
- type EXT_METAL_SURFACE_EXTENSION_NAME = "VK_EXT_metal_surface"
- pattern EXT_METAL_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- newtype SurfaceKHR = SurfaceKHR Word64
- data CAMetalLayer
Documentation
createMetalSurfaceEXT :: Instance -> MetalSurfaceCreateInfoEXT -> ("allocator" ::: Maybe AllocationCallbacks) -> IO SurfaceKHR Source #
vkCreateMetalSurfaceEXT - Create a VkSurfaceKHR object for CAMetalLayer
Parameters
Instance
is the instance with which to associate the surface.
pCreateInfo
is a pointer to aMetalSurfaceCreateInfoEXT
structure specifying parameters affecting the creation of the surface object.pAllocator
is the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface
is a pointer to aSurfaceKHR
handle in which the created surface object is returned.
Valid Usage (Implicit)
pCreateInfo
must be a valid pointer to a validMetalSurfaceCreateInfoEXT
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validAllocationCallbacks
structure pSurface
must be a valid pointer to aSurfaceKHR
handle
Return Codes
See Also
AllocationCallbacks
,
Instance
, MetalSurfaceCreateInfoEXT
,
SurfaceKHR
data MetalSurfaceCreateInfoEXT Source #
VkMetalSurfaceCreateInfoEXT - Structure specifying parameters of a newly created Metal surface object
Valid Usage (Implicit)
See Also
MetalSurfaceCreateFlagsEXT
,
StructureType
,
createMetalSurfaceEXT
MetalSurfaceCreateInfoEXT | |
|
Instances
newtype MetalSurfaceCreateFlagsEXT Source #
Instances
type EXT_METAL_SURFACE_SPEC_VERSION = 1 Source #
pattern EXT_METAL_SURFACE_SPEC_VERSION :: forall a. Integral a => a Source #
type EXT_METAL_SURFACE_EXTENSION_NAME = "VK_EXT_metal_surface" Source #
pattern EXT_METAL_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
Instances
data CAMetalLayer Source #