microsoft / D3D12TranslationLayer

A library containing utilities for mapping higher-level graphics work to D3D12
MIT License
326 stars 47 forks source link

D3D11 Dependency #62

Open vladipus opened 2 years ago

vladipus commented 2 years ago

Scanning through the codes I've discovered this inclusion:

#include <d3d11_3.h>

I just wonder why? Shouldn't the translation layer actually be API-agnostic as it's mainly utilized to actually implement some higher-level APIs in turn?

jenatali commented 2 years ago

This is largely historical, in that this codebase originated as part of D3D11. There's still references to D3D11 constants (that are identical to the equivalent D3D12 ones and should be switched), and also D3D11 enums and structs that should be replaced with hand-rolled equivalents.