CompileFromFile not working in WinUI app #372
Replies: 4 comments
-
I can at least attest that the file can be fetched with the following Windows.Storage techniques... Use install directory to connect to file path Use app uri to connect to file path |
Beta Was this translation helpful? Give feedback.
-
Can't you just read the content and compile the string without calling CompileFromFilename? |
Beta Was this translation helpful? Give feedback.
-
Yes I can, I'm also looking into the resource manager, see if it might be a good replacement for handling files the way I do. I guess I just like to know what's going on, it's usually my fault. Could the function throw a NotImplementedException if that's the case? Or is the issue in DirectX? |
Beta Was this translation helpful? Give feedback.
-
From msdn docs: https://learn.microsoft.com/en-us/windows/win32/api/d3dcompiler/nf-d3dcompiler-d3dcompilefromfile
|
Beta Was this translation helpful? Give feedback.
-
When calling Vortice.D3DCompiler.Compiler.CompileFromFile (the shader compiler) in a WinUI app, the call fails with a file path not found error.
Here's a minimal WinUI app that shows the behavior.
CompileShaderFromFile.zip
Beta Was this translation helpful? Give feedback.
All reactions