Skip to content

SetGfxDriver

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

SetGfxDriver

SetGfxDriver:Void driver:Int32
Parameter Mode Type Default Description
driver In Int32 required The driver number, starting at 1.

Description

Chooses the graphics driver for the next Graphics call. This is the GPU that draws everything in the program, so it has to be called before the first Graphics, LoadImage, CreateTexture or any other command that makes an image or texture. The choice is kept when EndGraphics closes the window.

Differences

  • Any number except 1 to CountGfxDrivers stops the program with an error message. Calling it once the GPU is in use stops a program compiled with -d with an error message, and is ignored in any other build. A driver that cannot draw to the window (or does not do Vulkan 1.3) stops the program at Graphics.

Related Commands

CountGfxDrivers, CountGfxModes, GfxDriver 〔BlitzLLVM〕, GfxDriverName, GfxModeDepth, GfxModeExists, GfxModeFormat, SetGamma

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally