@bghgary We have a custom ShaderMaterial in a Babylon React Native project which works fine on Android but fails with the following error on iOS.
-[MTLVertexDescriptorInternal newSerializedDescriptor], line 726: error 'Serialized Descriptor Creation
Attribute at index 1 references a buffer at index 1 that has no stride.
'
-[MTLVertexDescriptorInternal newSerializedDescriptor]:726: failed assertion `Serialized Descriptor Creation
Attribute at index 1 references a buffer at index 1 that has no stride.
'
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib
-[MTLVertexDescriptorInternal newSerializedDescriptor]:726: failed assertion `Serialized Descriptor Creation
Attribute at index 1 references a buffer at index 1 that has no stride.
Native Android build works fine and the playground runs as expected in Chrome on both Mac OS and iOS, so it’s just native iOS build that results in the error.
Is there something else I need to do for iOS or could this be a bug?
@Cedric can you please clarify? You want me to run the code in the master branch of Babylon Native, not Babylon React Native? I’m not even sure how to go about that as our project is a Babylon React Native project.
I’ll check on our xcode and iOS hardware and get back to you.
Hi @Cedric thanks for the follow-up. I’ve got some time in our upcoming sprint to create a simpler test case for this and the strange GLB load issue we’re having also.
Hi @Cedric . Sorry I don’t have any new information that could help. I ended up refactoring and migrating my shaders from ShaderMaterial to material plugins and we haven’t seen this error since then. Likely it was something I was doing wrong but there definitely was a difference between the shaders working in Android but not iOS at that time. I’ve used ShaderMaterial again recently with no issues on either platform.