DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

How to traverse AST using IDxcCursor?

Open cx-zzz opened this issue 2 years ago • 1 comments

I'm puzzled about how to use IDxcCursor to traverse AST, i have read the Wiki and i didn't find anything about CompilationResult which uses IDxcCursor to traverse the AST(perhaps i missed). Can someone show me how to do this begin from loading .hlsl file? Thank you!

cx-zzz avatar Oct 04 '22 13:10 cx-zzz

I know how to do this, but all the examples begin from text and create unsaved file using CreateUnsavedFile function in DXIsenseTest.cpp. Can i just read the .hlsl file by its name?

cx-zzz avatar Oct 04 '22 14:10 cx-zzz

We're not planning to investigate this further. If this is still something you're struggling with please let us know.

damyanp avatar Apr 29 '24 17:04 damyanp