Post

Replies

Boosts

Views

Activity

Reply to newLibraryWithSource Crash when bundle path containing chinese characters
Because our project targets to multiple platforms, So shaders are compiled at runtime. We analyzed call stack of newLibraryWithSource, it will call TLLibraryBuilder::newLibraryWithSource which acquired resourcePath of mainBundle to serve as the working directory to compile shaders(a parameter named -working-directory). So I think there are some relationships between bundle path and shader compilation. Our workaround is swizzling resourcePath to "." when call newLibraryWithSource.
Topic: Graphics & Games SubTopic: Metal Tags:
Mar ’21