DirectX... help me understand in abstract terms what goes on.

Maximilian

Lifer
Feb 8, 2004
12,604
15
81
Lets just take an average PC game that uses directX. The game sends messages to directX (dosent it?) which then does... what? Is the cycle of communication game --> directX --> drivers --> hardware?

Also whats the terminology for this communication, i see the word "calls" being used sometimes.

Its just nice to know generally how stuff like this is all related/works after having used it for so long to game with :)
 

Jaydip

Diamond Member
Mar 29, 2010
3,691
21
81
I mean do you want to debug through a sample directx application in action or do you want to know more about directx?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Yeah, more or less. Drivers encapsulate and provide an interface to the hardware. DirectX encapsulates and provides an interface to the drivers. Essentially a game pumps shaders, textures, and vertex buffers to DirectX as the game runs and the model is rendered, and DirectX does some preprocessing and pumps all that stuff to the drivers, which in turn send it to the hardware.
 

BrightCandle

Diamond Member
Mar 15, 2007
4,762
0
76
At a high level the program does indeed call the directx api and then that is passed to the user space GPU driver. That driver queues up the frames and passes them through the OS to the kernel space GPU driver to put the actual frame into the GPU. The GPU will then handle how it gets out to the display.