DeviceInfo Derived Type

type, public :: DeviceInfo

A window's Vulkan device and driver (each '' if unknown).


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: driver

its driver's name

character(len=:), public, allocatable :: driver_info

its driver's information (e.g. its version)

character(len=:), public, allocatable :: kind

integrated GPU, discrete GPU, virtual GPU, CPU or other

character(len=:), public, allocatable :: name

the device (e.g. "Apple M3 Max")

character(len=:), public, allocatable :: vulkan

the Vulkan version it supports


Source Code

    type, public :: DeviceInfo
        character(len=:), allocatable :: name               !! the device (e.g. "Apple M3 Max")
        character(len=:), allocatable :: kind               !! integrated GPU, discrete GPU, virtual GPU, CPU or other
        character(len=:), allocatable :: vulkan             !! the Vulkan version it supports
        character(len=:), allocatable :: driver             !! its driver's name
        character(len=:), allocatable :: driver_info        !! its driver's information (e.g. its version)
    end type DeviceInfo