Skip to content

Add support for thin instances #407

Description

@ryantrem

Thin instances don't currently work in Babylon Native. On iOS, they cause a crash with this error and stack:

2020-09-16 09:30:50.430191-0700 Playground[2068:1101454] Compiler failed to build request
2020-09-16 09:30:50.430974-0700 Playground[2068:1101454] Compiler failed to build request
2020-09-16 09:30:50.431063-0700 Playground[2068:1101454] /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/renderer_mtl.h (361): BGFX WARN newRenderPipelineStateWithDescriptor failed: Vertex attribute 10 is not defined in the vertex descriptor.
#3	0x00000001058ff8dc in bgfx::mtl::RenderCommandEncoder::setRenderPipelineState(id<MTLRenderPipelineState>) at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/renderer_mtl.h:451
#4	0x00000001058f8f14 in bgfx::mtl::RendererContextMtl::submit(bgfx::Frame*, bgfx::ClearQuad&, bgfx::TextVideoMemBlitter&) at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/renderer_mtl.mm:4455
#5	0x00000001058c7b24 in bgfx::Context::renderFrame(int) at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/bgfx.cpp:2347
#6	0x00000001058c775c in bgfx::Context::swap() at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/bgfx.cpp:2257
#7	0x00000001058c366c in bgfx::Context::frameNoRenderWait() at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/bgfx.cpp:2222
#8	0x00000001058c3968 in bgfx::Context::frame(bool) at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/bgfx.cpp:2213
#9	0x00000001058d10f0 in bgfx::frame(bool) at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/bgfx.cmake/bgfx/src/bgfx.cpp:3881
#10	0x00000001051f7e9c in Babylon::NativeEngine::EndFrame() at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Plugins/NativeEngine/Source/NativeEngine.cpp:1675
#11	0x000000010523b614 in Babylon::NativeEngine::RequestAnimationFrame(Napi::CallbackInfo const&)::$_11::operator()(Napi::Env) const at /Users/ryantremblay/Repos/BabylonReactNative/Modules/@babylonjs/react-native/submodules/BabylonNative/Plugins/NativeEngine/Source/NativeEngine.cpp:747

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions