Open LouChiSoft opened 2 months ago
The current behavior is not ideal, in that loadModule returns a raw pointer whose lifetime is bound to be the same as ISession. We should fix this in the long term, but in the meantime at a minimum we should document this and document the intent to change it.
(Assigning to myself because it's related to #4420 in the documentation bit)
Following the instructions on using the compilation API instead of
slangc
and there is a section about generating diagnostic data:I tried this and as far as I can see there is no version of
loadModule
that returns aSlang::ComPtr<ISession>
nor is there a constructor that takes anISession*
to create the one from. Not sure if it's the documentation that needs updating or there is a bit of missing code.Version: Built from source. GitHash = 1a0bbb53c116e6e5f89ed577803341e6aa1bce82 Default build.