DirectX 12 book start almost finished!

in c •  2 years ago 

I thought I would start book on DirectX 12

With a sequence of articles, programs, on DirectX 11on12.
Over the last couple of weeks, maybe a month, you get old and ...

I was converting Microsoft's Marble Maze example, originally VS15, legacy c/c++ to VS17, c/c++ 17.

When, yesterday I got it by accident. It is the most innocuous, unsuspecting accident or recognition of wrong logic that makes a program work. Like the time I took GitHub.com/matt_filer 's DirectX 12 toolkit (GitHub.com/walbourn) example of Super Mario Kart and realized that the whole thing could be upgraded simply to c/c++ 20 after mScene was changed from a pointer to an address - &mScene vs *mScene.

My is Marble Maze fast and responsive!

The interesting thing is all code is nearly the same for a DirectX 11 upgrade to DirectX 11on12 solely by modification of the DeviceResources header and source file of a template created DirectX App Solution.

True, projectMain header and source files need a smidge of modifications.

The nice thing about it all is it is easy to see with a test of the graphics card as to whether a program can be be run in DirectX 11 or 12.

And oh are the graphics sharp!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!