Skip to content
Discussion options

You must be logged in to vote

You're not overlooking a D3DCompiler.CreateEffectFromMemory overload. Compilation and the Effects runtime are two separate libraries.

Silk.NET exposes the D3DCompiler compilation API, but D3DX11CreateEffectFromMemory belongs to Effects 11 (FX11), alongside the ID3DX11Effect interfaces. It isn't a core ID3D11Device method or an export of d3dcompiler_47.dll. Microsoft's FX11 source/header and documentation provide that runtime separately.

That means there are two ways to proceed:

  • Follow the book's effects-based code: add a separate managed binding to FX11, or a native wrapper around it, including the effect/pass/variable interfaces you use. Compiling the .fx into a blob is only the first h…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rbwhitaker
Comment options

Answer selected by rbwhitaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants