You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the issue you're encountering?
I am looking to generate AST for a given shader entry point.
Steps to Reproduce (if applicable)
Attempting to parse the translation unit and giving the following parameters: const char* command_line_args[] = { "-E", "CS_Main"}; HRESULT hr = tuIndex->ParseTranslationUnit(getDefaultFileName(), command_line_args, 2, &(unsavedFile.p), 1, localOptions, &tu);
Gives me a return code of: 2147500037 [0x80004005]
Is there a listing of compatible command line arguments for ParseTranslationUnit? I know -HV works (based on the the DXISenseTest.cpp)
This API isn't something that we're intending to support long term. Depending on what you're trying to do this may well be something worth discussing with us as we design the clangd-based replacement. Maybe we can provide a better answer if we understand better what you're trying to use the AST for.
There's also the DirectX and LLVM discords where you can get in touch with the people working in this area.
So the main reason I want to use the AST is for code-gen in my shader compiler (mostly for code modifications and resource/structures collections). For my use case perhaps reflection is a better way to do it though.
If the API is not meant to be used long term, I am happy to close this issue!
What is the issue you're encountering?
I am looking to generate AST for a given shader entry point.
Steps to Reproduce (if applicable)
Attempting to parse the translation unit and giving the following parameters:
const char* command_line_args[] = { "-E", "CS_Main"};
HRESULT hr = tuIndex->ParseTranslationUnit(getDefaultFileName(), command_line_args, 2, &(unsavedFile.p), 1, localOptions, &tu);
Gives me a return code of: 2147500037 [0x80004005]
Is there a listing of compatible command line arguments for ParseTranslationUnit? I know -HV works (based on the the DXISenseTest.cpp)
Environment
dxcompiler.dll: 1.8 - 1.8.2407.7 (416fab6); dxil.dll: 1.8(101.8.2407.12)
The text was updated successfully, but these errors were encountered: