Skip to content

CountGfxDrivers

Claude edited this page Oct 27, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

CountGfxDrivers

CountGfxDrivers:Int32

Returns: The number of drivers.

Description

The number of graphics drivers that can be chosen with SetGfxDriver. In the original every video card was a driver, which mattered to 3D programs on computers with two cards.

Differences

  • Every GPU that Vulkan reports is a driver, including software ones. Driver 1 is the one a program uses without SetGfxDriver: a discrete GPU if there is one, then an integrated, virtual and software one, then those that cannot be used. Without a display (or a Vulkan driver) there is one driver, "Default".

Examples

Print "Graphics drivers: " + CountGfxDrivers()
For d = 1 To CountGfxDrivers()
	Print d + ": " + GfxDriverName(d)
Next
WaitKey

Related Commands

CountDisplayModes 〔BlitzLLVM〕, CountDisplays 〔BlitzLLVM〕, CountGfxModes, CountRefreshRates 〔BlitzLLVM〕, GfxDriver 〔BlitzLLVM〕, GfxDriverName, GfxModeDepth, GfxModeExists

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally