shader-slang / slang

Making it easier to work with shaders
MIT License
2.06k stars 177 forks source link

Add capture logic to other interfaces. #4412

Closed kaizhangNV closed 3 months ago

kaizhangNV commented 3 months ago

Add capture logics to ISession, IModule, ITypeConformance, IEntryPoint ICompositeComponentType.

Add few encode methods to encode the array.

Fix some capture logic in global session. We will not need to encode the null_ptr output before actual actual of the captured APIs. Previously we used this as a place holder, but it's actually not necessary, it can be detected if the output is not captured during replay.

Dump the shader files to disk.

Also set a default directory for the capture files.