vulkan-3.11.3: Bindings to the Vulkan graphics API.
Safe HaskellNone
LanguageHaskell2010

Vulkan.Extensions.VK_EXT_physical_device_drm

Description

Name

VK_EXT_physical_device_drm - device extension

VK_EXT_physical_device_drm

Name String
VK_EXT_physical_device_drm
Extension Type
Device extension
Registered Extension Number
354
Revision
1
Extension and Version Dependencies
  • Requires Vulkan 1.0
  • Requires VK_KHR_get_physical_device_properties2
Contact

Other Extension Metadata

Last Modified Date
2021-06-09
IP Status
No known IP claims.
Contributors
  • Simon Ser

Description

This extension provides new facilities to query DRM properties for physical devices, enabling users to match Vulkan physical devices with DRM nodes on Linux.

Its functionality closely overlaps with EGL_EXT_device_drm1^. Unlike the EGL extension, this extension does not expose a string containing the name of the device file and instead exposes device minor numbers.

DRM defines multiple device node types. Each physical device may have one primary node and one render node associated. Physical devices may have no primary node (e.g. if the device does not have a display subsystem), may have no render node (e.g. if it is a software rendering engine), or may have neither (e.g. if it is a software rendering engine without a display subsystem).

To query DRM properties for a physical device, chain PhysicalDeviceDrmPropertiesEXT to PhysicalDeviceProperties2.

New Structures

New Enum Constants

References

  1. EGL_EXT_device_drm

Version History

  • Revision 1, 2021-06-09

    • First stable revision

See Also

PhysicalDeviceDrmPropertiesEXT

Document Notes

For more information, see the Vulkan Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

Synopsis

Documentation

data PhysicalDeviceDrmPropertiesEXT Source #

VkPhysicalDeviceDrmPropertiesEXT - Structure containing DRM information of a physical device

Description

If the PhysicalDeviceDrmPropertiesEXT structure is included in the pNext chain of the PhysicalDeviceProperties2 structure passed to getPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.

These are properties of the DRM information of a physical device.

Valid Usage (Implicit)

See Also

Bool32, StructureType

Constructors

PhysicalDeviceDrmPropertiesEXT 

Fields

  • hasPrimary :: Bool

    hasPrimary is a boolean indicating whether the physical device has a DRM primary node.

  • hasRender :: Bool

    hasRender is a boolean indicating whether the physical device has a DRM render node.

  • primaryMajor :: Int64

    primaryMajor is the DRM primary node major number, if any.

  • primaryMinor :: Int64

    primaryMinor is the DRM primary node minor number, if any.

  • renderMajor :: Int64

    renderMajor is the DRM render node major number, if any.

  • renderMinor :: Int64

    renderMinor is the DRM render node minor number, if any.

Instances

Instances details
Eq PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

Show PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

Storable PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

FromCStruct PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

ToCStruct PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

Zero PhysicalDeviceDrmPropertiesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_physical_device_drm

type EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME = "VK_EXT_physical_device_drm" Source #

pattern EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #