Repository navigation
DirectX 11 Effects Framework? #2619
|
I'm going through the book 3D Game Programming with DirectX 11 (Frank Luna), and I got to a part that discusses using the effects framework. I'm comfortable using effects because of XNA, back in the day, and MonoGame since then. In the book, it uses Though I got I saw a warning ("X4717: Effects deprecated for D3DCompiler_47") that seemed to say the effects framework is deprecated, so is that the explanation for why it is missing? |
Replies: 1 comment 1 reply
|
You're not overlooking a Silk.NET exposes the D3DCompiler compilation API, but That means there are two ways to proceed:
The |
You're not overlooking a
D3DCompiler.CreateEffectFromMemoryoverload. Compilation and the Effects runtime are two separate libraries.Silk.NET exposes the D3DCompiler compilation API, but
D3DX11CreateEffectFromMemorybelongs to Effects 11 (FX11), alongside theID3DX11Effectinterfaces. It isn't a coreID3D11Devicemethod or an export ofd3dcompiler_47.dll. Microsoft's FX11 source/header and documentation provide that runtime separately.That means there are two ways to proceed:
.fxinto a blob is only the first h…