8 votes
Accepted

Is there any reason to prefer Direct3D over OpenGL?

About the fact that there are more games for Windows, some reasons are Windows has the majority of the market and in the past to develop cross platform games was more complicated than it is today. ...
darius's user avatar
  • 196
5 votes
Accepted

Why does DirectX use COM pointers and interfaces?

C++ has no defined ABI, so C++ programs can't link to libraries that were compiled with a different compiler. In addition, MS's Visual Studio C++ compiler is not ABI-stable, so you don't just have to ...
Dan Hulme's user avatar
  • 6,810
3 votes
Accepted

D3D11 Gpu profiling with queries accuracy

It looks like a normal amount of variance to me. Profiling results naturally fluctuate because there can be nondeterministic cache effects, changes in how the work is scheduled, there can be other ...
Nathan Reed's user avatar
3 votes
Accepted

Artifacts in omni light shadow mapping

I finally found the cause of the problem. There appears to be a problem with the shadow map of both the omni light and spotlight. While debugging, I noticed by accident that the light-view-to-light-...
Matthias's user avatar
  • 1,074
2 votes
Accepted

Flexible Vertex Format Constants in Direct3D 11

Vertex formats are specified in D3D11 using the input layout. An example input layout description for your vertex might look like: ...
Nathan Reed's user avatar
2 votes
Accepted

Edge-aware spatial denoising (Ambient Occlusion)

I've also been working on GTAO denoising, and came across the same equation.The function is weighing the neighbouring samples by their depth-difference from the center sample, and also by their slopes....
Benjamin Sims's user avatar
2 votes
Accepted

How do (Direct3D) precision conversions for floats work?

Rounding is all about what happens to the data in the higher precision format that don't exist in the lower precision one. For example, 0.7 cannot exactly be represented as an 8-bit unsigned, ...
Nicol Bolas's user avatar
  • 9,792
2 votes
Accepted

Image saved as DDS with 16f format in photoshop has strange FOURCC text

The tool seems to be generating an unofficial extended version of DDS in which the FOURCC code is replaced by a value from the D3DFORMAT enum. The code ...
Nathan Reed's user avatar
1 vote
Accepted

D3D11 Map forces synchronization

Yes, Map can force synchronization in some situations. In D3D11, the driver handles GPU command recording, submission and synchronization. When you make D3D11 calls,...
Nathan Reed's user avatar
1 vote
Accepted

R16_FLOAT, SampleCmp and CheckFormatSupport

Because I was using the CheckFormatSupport wrong. The second parameter is supposed to be an input. Here is what it should be like. ...
ACskyline's user avatar
  • 115
1 vote

Is there any reason to prefer Direct3D over OpenGL?

A couple of possible reasons: Historically, OpenGL driver quality has varied a lot, but I'm not sure that's the case any more. Xbox supports D3D so porting a game between it and PC is easier. ...
SurvivalMachine's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible