@babylonjs/react-native 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/react-native-babylon.podspec +2 -0
- package/shared/BabylonNative/CMakeLists.txt +2 -0
- package/shared/BabylonNative/Repo/CMakeLists.txt +16 -12
- package/shared/BabylonNative/Repo/Core/Graphics/CMakeLists.txt +41 -21
- package/shared/BabylonNative/Repo/Core/Graphics/Include/Platform/iOS/Babylon/Graphics/Platform.h +2 -2
- package/shared/BabylonNative/Repo/Core/Graphics/Include/Platform/macOS/Babylon/Graphics/Platform.h +2 -2
- package/shared/BabylonNative/Repo/Core/Graphics/Include/Platform/visionOS/Babylon/Graphics/Platform.h +2 -2
- package/shared/BabylonNative/Repo/Core/Graphics/Include/RendererType/Metal/Babylon/Graphics/RendererType.h +6 -6
- package/shared/BabylonNative/Repo/Core/Graphics/InternalInclude/Babylon/Graphics/BgfxCallback.h +1 -1
- package/shared/BabylonNative/Repo/Core/Graphics/Source/BgfxCallback.cpp +32 -9
- package/shared/BabylonNative/Repo/Core/Graphics/Source/DeviceImpl.cpp +7 -5
- package/shared/BabylonNative/Repo/Core/Graphics/Source/{DeviceImpl_Metal.cpp → DeviceImpl_Metal.mm} +4 -3
- package/shared/BabylonNative/Repo/Core/Graphics/Source/DeviceImpl_iOS.mm +5 -3
- package/shared/BabylonNative/Repo/Core/Graphics/Source/DeviceImpl_macOS.mm +10 -1
- package/shared/BabylonNative/Repo/Core/Graphics/Source/DeviceImpl_visionOS.mm +2 -4
- package/shared/BabylonNative/Repo/Dependencies/CMakeLists.txt +77 -12
- package/shared/BabylonNative/Repo/Dependencies/xr/CMakeLists.txt +1 -3
- package/shared/BabylonNative/Repo/Plugins/ExternalTexture/CMakeLists.txt +1 -6
- package/shared/BabylonNative/Repo/Plugins/ExternalTexture/Source/ExternalTexture_D3D11.cpp +4 -0
- package/shared/BabylonNative/Repo/Plugins/ExternalTexture/Source/ExternalTexture_D3D12.cpp +4 -0
- package/shared/BabylonNative/Repo/Plugins/ExternalTexture/Source/{ExternalTexture_Metal.mm → ExternalTexture_Metal.cpp} +128 -120
- package/shared/BabylonNative/Repo/Plugins/NativeCamera/CMakeLists.txt +2 -2
- package/shared/BabylonNative/Repo/Plugins/NativeCamera/Source/Apple/CameraDevice.mm +5 -5
- package/shared/BabylonNative/Repo/Plugins/NativeEngine/CMakeLists.txt +2 -1
- package/shared/BabylonNative/Repo/Plugins/NativeEngine/Source/NativeEngine.cpp +2 -1
- package/shared/BabylonNative/Repo/Plugins/NativeEngine/Source/ShaderProvider.cpp +6 -6
- package/shared/BabylonNative/Repo/Plugins/NativeOptimizations/CMakeLists.txt +1 -2
- package/shared/BabylonNative/Repo/Plugins/NativeTracing/CMakeLists.txt +1 -2
- package/shared/BabylonNative/Repo/Plugins/NativeXr/Source/NativeXrImpl.cpp +1 -0
- package/shared/BabylonNative/Repo/Plugins/ShaderCache/CMakeLists.txt +0 -2
- package/shared/BabylonNative/Repo/Plugins/ShaderCache/Include/Babylon/Plugins/ShaderCache.h +2 -2
- package/shared/BabylonNative/Repo/Plugins/ShaderCache/Source/ShaderCache.cpp +2 -2
- package/shared/BabylonNative/Repo/Plugins/ShaderCache/Source/ShaderCacheImpl.cpp +4 -4
- package/shared/BabylonNative/Repo/Plugins/ShaderCache/Source/ShaderCacheImpl.h +2 -2
- package/shared/BabylonNative/Repo/Plugins/ShaderCompiler/Source/ShaderCompilerCommon.cpp +2 -0
- package/shared/BabylonNative/Repo/Plugins/ShaderCompiler/Source/ShaderCompilerTraversers.cpp +4 -0
- package/shared/BabylonNative/Repo/Plugins/TestUtils/CMakeLists.txt +6 -8
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Include/Babylon/Plugins/TestUtils.h +0 -1
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/TestUtils.cpp +20 -6
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/TestUtils.h +13 -13
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/{Android/TestUtilsImpl.cpp → TestUtils_Android.cpp} +1 -10
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/{Unix/TestUtilsImpl.cpp → TestUtils_Unix.cpp} +10 -20
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/{Win32/TestUtilsImpl.cpp → TestUtils_Win32.cpp} +10 -20
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/{WinRT/TestUtilsImpl.cpp → TestUtils_WinRT.cpp} +9 -13
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/TestUtils_iOS.mm +25 -0
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/TestUtils_macOS.mm +50 -0
- package/shared/BabylonNative/Repo/Polyfills/Canvas/Source/Shaders/dx11/fs_boxblur.h +1 -1
- package/shared/BabylonNative/Repo/Polyfills/Canvas/Source/Shaders/dx11/fs_gaussblur.h +1 -1
- package/shared/BabylonNative/Repo/Polyfills/Canvas/Source/Shaders/dx11/fs_nanovg_fill.h +1 -1
- package/shared/BabylonNative/Repo/Polyfills/Canvas/Source/Shaders/dx11/vs_fspass.h +1 -1
- package/shared/BabylonNative/Repo/Polyfills/Canvas/Source/Shaders/dx11/vs_nanovg_fill.h +1 -1
- package/shared/BabylonNative/Repo/Polyfills/Canvas/shaderc.cmake +2 -2
- package/shared/BabylonNative/Repo/azure-pipelines.yml +36 -24
- package/shared/BabylonNative/deps/arcana.cpp-src/CMakeLists.txt +17 -1
- package/shared/BabylonNative/deps/arcana.cpp-src/README.md +1 -1
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Shared/arcana/string.h +0 -12
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Shared/arcana/threading/cancellation.h +25 -12
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Windows.Test/Threading/CancellationMemoryLeakTest.cpp +37 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/CMakeLists.txt +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/README.md +5 -5
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/LICENSE +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/README.md +31 -14
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/args.h +5 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/aviwriter.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/bgfx_utils.cpp +4 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/bgfx_utils.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/common.h +43 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/common.sh +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/debugdraw.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/debugdraw.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill.bin.h +180 -29
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill_lit.bin.h +305 -92
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill_lit.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.bin.h +328 -26
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_lines.bin.h +227 -13
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_lines.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_lines_stipple.bin.h +290 -38
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/fs_debugdraw_lines_stipple.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill.bin.h +319 -95
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc +2 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_lit.bin.h +410 -133
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_lit.sc +2 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_lit_mesh.bin.h +378 -120
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_lit_mesh.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_mesh.bin.h +290 -85
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_mesh.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_texture.bin.h +259 -18
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_fill_texture.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_lines.bin.h +228 -14
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_lines.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_lines_stipple.bin.h +255 -16
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/debugdraw/vs_debugdraw_lines_stipple.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/cmd.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/cmd.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/dbg.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/dialog.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/dialog.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_android.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_glfw.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_html5.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_ios.mm +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_noop.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_osx.mm +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_p.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_sdl.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_windows.cpp +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/entry_x11.cpp +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/input.cpp +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/entry/input.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/example-glue.cpp +21 -9
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_basic.bin.h +391 -75
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field.bin.h +382 -119
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_drop_shadow.bin.h +587 -227
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_drop_shadow_image.bin.h +655 -265
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_outline.bin.h +452 -164
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_outline_drop_shadow_image.bin.h +719 -307
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_outline_image.bin.h +535 -208
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/fs_font_distance_field_subpixel.bin.h +495 -125
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_basic.bin.h +254 -16
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field.bin.h +254 -16
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_drop_shadow.bin.h +340 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_drop_shadow_image.bin.h +340 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_outline.bin.h +310 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_outline_drop_shadow_image.bin.h +340 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_outline_image.bin.h +310 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/font/vs_font_distance_field_subpixel.bin.h +254 -16
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_image.bin.h +277 -59
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_ocornut_imgui.bin.h +324 -25
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/imgui.cpp +9 -9
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/imgui.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_image.bin.h +219 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_ocornut_imgui.bin.h +239 -7
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/nanovg/fs_nanovg_fill.bin.h +925 -472
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/nanovg/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/nanovg/nanovg_bgfx.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/nanovg/nanovg_bgfx.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/nanovg/vs_nanovg_fill.bin.h +223 -7
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/packrect.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/fs_particle.bin.h +382 -70
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/fs_particle.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/particle_system.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/particle_system.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/vs_particle.bin.h +263 -18
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/ps/vs_particle.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/shaderlib.sh +10 -7
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/include/bgfx/bgfx.h +149 -7
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/include/bgfx/c99/bgfx.h +225 -101
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/include/bgfx/defines.h +30 -21
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/include/bgfx/embedded_shader.h +110 -60
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/include/bgfx/platform.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/makefile +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bgfx.idl +189 -70
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bgfx.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bindings-bf.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bindings-c3.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bindings-cs.lua +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/bindings-zig.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/example-common.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/genie.lua +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/geometryc.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/geometryv.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/shader-embeded.mk +18 -4
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/shader.mk +21 -6
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/shaderc.lua +139 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/temp.bgfx.h +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/temp.bgfx.hpp +2 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/temp.bgfx.idl.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/temp.defines.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/texturec.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/texturev.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/scripts/tools.mk +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/amalgamated.cpp +2 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/amalgamated.mm +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/bgfx.cpp +406 -164
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/bgfx.idl.inl +37 -9
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/bgfx_compute.sh +40 -43
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/bgfx_p.h +795 -170
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/bgfx_shader.sh +205 -73
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/charset.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/config.h +18 -4
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/debug_renderdoc.cpp +8 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/debug_renderdoc.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/dxgi.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/dxgi.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/emscripten.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear0.bin.h +190 -36
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear0.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear1.bin.h +223 -46
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear1.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear2.bin.h +253 -55
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear2.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear3.bin.h +283 -65
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear3.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear4.bin.h +314 -75
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear4.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear5.bin.h +343 -85
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear5.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear6.bin.h +373 -94
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear6.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear7.bin.h +404 -105
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_clear7.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_debugfont.bin.h +401 -67
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/fs_debugfont.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_egl.cpp +114 -36
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_egl.h +5 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_html5.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_html5.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_wgl.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glcontext_wgl.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/glimports.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/makefile +17 -13
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/nvapi.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/nvapi.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer.h +50 -29
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_agc.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_d3d.h +7 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_d3d11.cpp +291 -180
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_d3d11.h +5 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_d3d12.cpp +635 -218
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_d3d12.h +78 -10
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_gl.cpp +65 -45
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_gl.h +24 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_gnm.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_mtl.h +50 -24
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_mtl.mm +158 -56
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_noop.cpp +8 -12
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_nvn.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_vk.cpp +810 -445
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_vk.h +194 -133
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_webgpu.cpp +6239 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/renderer_webgpu.h +897 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader_dxbc.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader_dxbc.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader_spirv.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/shader_spirv.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/topology.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/topology.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/version.h +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vertexlayout.cpp +2 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vertexlayout.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vs_clear.bin.h +186 -24
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vs_clear.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vs_debugfont.bin.h +314 -44
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/src/vs_debugfont.sc +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/3rdparty/nvtt/bc7/avpcl_mode4.cpp +2 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/3rdparty/nvtt/nvcore/debug.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/3rdparty/nvtt/nvtt.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/LICENSE +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/README.md +2 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/include/bimg/bimg.h +5 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/include/bimg/decode.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/include/bimg/encode.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/makefile +183 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/scripts/bimg.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/scripts/bimg_decode.lua +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/scripts/bimg_encode.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/scripts/genie.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/scripts/texturec.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/bimg_p.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/config.h +52 -40
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/image.cpp +136 -120
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/image_cubemap_filter.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/image_decode.cpp +17 -5
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/image_encode.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/src/image_gnf.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bimg/tools/texturec/texturec.cpp +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/LICENSE +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/README.md +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/allocator.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/bounds.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/bx.h +43 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/commandline.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/config.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/constants.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/cpu.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/debug.h +15 -5
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/easing.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/endian.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/error.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/file.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/filepath.h +5 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/float4x4_t.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/handlealloc.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/hash.h +31 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/allocator.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/bounds.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/bx.inl +141 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/cpu.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/easing.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/endian.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/error.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/float4x4_t.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/handlealloc.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/hash.inl +28 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/math.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/mpscqueue.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/mutex.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/os.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/pixelformat.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/readerwriter.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/ringbuffer.inl +76 -8
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/rng.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd128_langext.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd128_neon.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd128_ref.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd128_sse.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd256_avx.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd256_ref.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/simd_ni.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/sort.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/spscqueue.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/string.inl +237 -48
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/timer.inl +67 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/typetraits.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/inline/uint32_t.inl +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/macros.h +6 -6
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/math.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/mpscqueue.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/mutex.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/os.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/pixelformat.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/platform.h +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/process.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/readerwriter.h +9 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/ringbuffer.h +145 -14
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/rng.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/semaphore.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/settings.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/simd_t.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/sort.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/spscqueue.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/string.h +111 -42
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/thread.h +5 -5
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/timer.h +59 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/typetraits.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/uint32_t.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/include/bx/url.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/scripts/bin2c.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/scripts/bx.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/scripts/genie.lua +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/scripts/toolchain.lua +36 -18
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/allocator.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/amalgamated.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/bounds.cpp +10 -10
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/bx.cpp +3 -3
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/commandline.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/crtnone.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/debug.cpp +866 -64
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/dtoa.cpp +3 -9
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/easing.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/file.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/filepath.cpp +7 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/hash.cpp +195 -37
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/math.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/mutex.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/os.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/process.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/semaphore.cpp +27 -6
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/settings.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/sort.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/string.cpp +206 -49
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/thread.cpp +35 -38
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/timer.cpp +5 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/src/url.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/allocator_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/atomic_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/cast_test.cpp +99 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/crt_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/dbg.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/easing_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/filepath_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/handle_bench.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/handle_test.cpp +6 -6
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/hash_test.cpp +37 -8
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/macros_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/main_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/math_bench.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/math_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/os_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/pixelformat_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/queue_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/readerwriter_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/ringbuffer_test.cpp +112 -7
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/rng_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/run_test.cpp +6 -4
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/settings_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/simd_bench.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/simd_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/sort_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/string_test.cpp +92 -39
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/test.h +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/thread_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/tokenizecmd_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/typetraits_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/uint32_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/url_test.cpp +1 -1
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tests/vsnprintf_test.cpp +365 -77
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tools/bin/darwin/genie +0 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tools/bin/linux/genie +0 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tools/bin/windows/genie.exe +0 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/bx/tools/bin2c/bin2c.cpp +2 -2
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/3rdparty/glslang.cmake +6 -5
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/3rdparty/spirv-opt.cmake +5 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/3rdparty/tint.cmake +98 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/CMakeLists.txt +1 -0
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/bgfx.cmake +11 -9
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/examples.cmake +16 -4
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bgfx/shaderc.cmake +21 -10
- package/shared/BabylonNative/deps/bgfx.cmake-src/cmake/bx/bx.cmake +5 -0
- package/shared/BabylonNative/deps/cmakeextensions-src/CMakeLists.txt +31 -5
- package/shared/BabylonNative/deps/cmakeextensions-src/README.md +6 -1
- package/shared/BabylonNative/deps/jsruntimehost-src/CMakeLists.txt +6 -5
- package/shared/BabylonNative/deps/jsruntimehost-src/Core/Node-API/Source/js_native_api_javascriptcore.cc +58 -4
- package/shared/BabylonNative/deps/jsruntimehost-src/Polyfills/CMakeLists.txt +4 -0
- package/shared/BabylonNative/deps/jsruntimehost-src/Polyfills/TextDecoder/CMakeLists.txt +15 -0
- package/shared/BabylonNative/deps/jsruntimehost-src/Polyfills/TextDecoder/Include/Babylon/Polyfills/TextDecoder.h +9 -0
- package/shared/BabylonNative/deps/jsruntimehost-src/Polyfills/TextDecoder/README.md +39 -0
- package/shared/BabylonNative/deps/jsruntimehost-src/Polyfills/TextDecoder/Source/TextDecoder.cpp +91 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/Foundation.hpp +47 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSArray.hpp +124 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSAutoreleasePool.hpp +83 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSBundle.hpp +374 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSData.hpp +54 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSDate.hpp +53 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSDefines.hpp +45 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSDictionary.hpp +128 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSEnumerator.hpp +78 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSError.hpp +173 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSLock.hpp +118 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSNotification.hpp +110 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSNumber.hpp +501 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSObjCRuntime.hpp +43 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSObject.hpp +302 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSPrivate.hpp +531 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSProcessInfo.hpp +386 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSRange.hpp +83 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSSet.hpp +87 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSSharedPtr.hpp +310 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSString.hpp +255 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSTypes.hpp +51 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Foundation/NSURL.hpp +90 -0
- package/shared/BabylonNative/deps/metal-cpp-src/LICENSE.txt +202 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4AccelerationStructure.hpp +1395 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4Archive.hpp +93 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4ArgumentTable.hpp +187 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4BinaryFunction.hpp +50 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4BinaryFunctionDescriptor.hpp +97 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CommandAllocator.hpp +100 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CommandBuffer.hpp +193 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CommandEncoder.hpp +134 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CommandQueue.hpp +283 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CommitFeedback.hpp +62 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4Compiler.hpp +345 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4CompilerTask.hpp +63 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4ComputeCommandEncoder.hpp +300 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4ComputePipeline.hpp +158 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4Counters.hpp +138 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4FunctionDescriptor.hpp +49 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4LibraryDescriptor.hpp +98 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4LibraryFunctionDescriptor.hpp +86 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4LinkingDescriptor.hpp +204 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4MachineLearningCommandEncoder.hpp +66 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4MachineLearningPipeline.hpp +172 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4MeshRenderPipeline.hpp +413 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4PipelineDataSetSerializer.hpp +85 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4PipelineState.hpp +150 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4RenderCommandEncoder.hpp +340 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4RenderPass.hpp +280 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4RenderPipeline.hpp +587 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4SpecializedFunctionDescriptor.hpp +100 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4StitchedFunctionDescriptor.hpp +86 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTL4TileRenderPipeline.hpp +173 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLAccelerationStructure.hpp +1887 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLAccelerationStructureCommandEncoder.hpp +260 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLAccelerationStructureTypes.hpp +292 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLAllocation.hpp +40 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLArgument.hpp +787 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLArgumentEncoder.hpp +235 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLBinaryArchive.hpp +152 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLBlitCommandEncoder.hpp +226 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLBlitPass.hpp +154 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLBuffer.hpp +119 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCaptureManager.hpp +217 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCaptureScope.hpp +91 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCommandBuffer.hpp +464 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCommandEncoder.hpp +117 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCommandQueue.hpp +158 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLComputeCommandEncoder.hpp +324 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLComputePass.hpp +169 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLComputePipeline.hpp +439 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLCounters.hpp +243 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDataType.hpp +129 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDefines.hpp +41 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDepthStencil.hpp +277 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDevice.hpp +1493 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDrawable.hpp +90 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLDynamicLibrary.hpp +78 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLEvent.hpp +170 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFence.hpp +55 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFunctionConstantValues.hpp +76 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFunctionDescriptor.hpp +153 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFunctionHandle.hpp +65 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFunctionLog.hpp +101 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLFunctionStitching.hpp +319 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLGPUAddress.hpp +36 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLHeaderBridge.hpp +3120 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLHeap.hpp +318 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIOCommandBuffer.hpp +182 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIOCommandQueue.hpp +211 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIOCompressor.hpp +94 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIndirectCommandBuffer.hpp +376 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIndirectCommandEncoder.hpp +272 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLIntersectionFunctionTable.hpp +173 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLLibrary.hpp +786 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLLinkedFunctions.hpp +110 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLLogState.hpp +111 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLParallelRenderCommandEncoder.hpp +83 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLPipeline.hpp +104 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLPixelFormat.hpp +173 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLPrivate.hpp +156 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLRasterizationRate.hpp +337 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLRenderCommandEncoder.hpp +1019 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLRenderPass.hpp +792 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLRenderPipeline.hpp +1876 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLResidencySet.hpp +178 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLResource.hpp +190 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLResourceStateCommandEncoder.hpp +98 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLResourceStatePass.hpp +154 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLResourceViewPool.hpp +118 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLSampler.hpp +345 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLStageInputOutputDescriptor.hpp +356 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLTensor.hpp +297 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLTexture.hpp +803 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLTextureViewPool.hpp +59 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLTypes.hpp +164 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLVersion.hpp +32 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLVertexDescriptor.hpp +326 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/MTLVisibleFunctionTable.hpp +96 -0
- package/shared/BabylonNative/deps/metal-cpp-src/Metal/Metal.hpp +120 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTL4FXFrameInterpolator.hpp +47 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTL4FXSpatialScaler.hpp +49 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTL4FXTemporalDenoisedScaler.hpp +49 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTL4FXTemporalScaler.hpp +49 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXDefines.hpp +41 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXFrameInterpolator.hpp +719 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXPrivate.hpp +482 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXSpatialScaler.hpp +397 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXTemporalDenoisedScaler.hpp +1208 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MTLFXTemporalScaler.hpp +803 -0
- package/shared/BabylonNative/deps/metal-cpp-src/MetalFX/MetalFX.hpp +35 -0
- package/shared/BabylonNative/deps/metal-cpp-src/QuartzCore/CADefines.hpp +41 -0
- package/shared/BabylonNative/deps/metal-cpp-src/QuartzCore/CAMetalDrawable.hpp +57 -0
- package/shared/BabylonNative/deps/metal-cpp-src/QuartzCore/CAMetalLayer.hpp +216 -0
- package/shared/BabylonNative/deps/metal-cpp-src/QuartzCore/CAPrivate.hpp +150 -0
- package/shared/BabylonNative/deps/metal-cpp-src/QuartzCore/QuartzCore.hpp +28 -0
- package/shared/BabylonNative/deps/metal-cpp-src/README.md +313 -0
- package/shared/BabylonNative/deps/metal-cpp-src/SingleHeader/MakeSingleHeader.py +271 -0
- package/shared/BabylonNative/deps/metal-cpp-src/SingleHeader/Metal.hpp +28735 -0
- package/shared/BabylonNative/deps/spirv-cross-src/spirv_hlsl.cpp +173 -222
- package/shared/BabylonNative/deps/urllib-src/CMakeLists.txt +6 -7
- package/shared/BabylonNative/deps/urllib-src/Source/UrlRequest_Unix.cpp +1 -1
- package/shared/BabylonNative.cpp +4 -0
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/Apple/TestUtilsImpl.mm +0 -57
- package/shared/BabylonNative/Repo/Plugins/TestUtils/Source/TestUtilsImplData.h +0 -18
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Android/Arcana.Android.vcxproj +0 -186
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Shared/Arcana.vcxitems +0 -47
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Windows/Arcana.Windows.Reference.vcxitems +0 -30
- package/shared/BabylonNative/deps/arcana.cpp-src/Source/Windows/Arcana.Windows.vcxproj +0 -218
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/bounds.cpp +0 -2178
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/bounds.h +0 -448
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_color.bin.h +0 -100
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_color.sc +0 -13
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_cubemap.bin.h +0 -223
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_cubemap.sc +0 -21
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_image_swizz.bin.h +0 -256
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_image_swizz.sc +0 -22
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_latlong.bin.h +0 -308
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_latlong.sc +0 -38
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_texture.bin.h +0 -180
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/fs_imgui_texture.sc +0 -16
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_color.bin.h +0 -195
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_color.sc +0 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_cubemap.bin.h +0 -203
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_cubemap.sc +0 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_latlong.bin.h +0 -205
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_latlong.sc +0 -15
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_texture.bin.h +0 -233
- package/shared/BabylonNative/deps/bgfx.cmake-src/bgfx/examples/common/imgui/vs_imgui_texture.sc +0 -16
|
@@ -15,112 +15,116 @@ namespace
|
|
|
15
15
|
// referencing format, and requiring use of ifdefery to reference format. To reduce ifdefery
|
|
16
16
|
// bgfx uses redefined formats, and on initialization it sets up format caps and provides
|
|
17
17
|
// availability.
|
|
18
|
-
constexpr
|
|
19
|
-
constexpr
|
|
20
|
-
constexpr
|
|
21
|
-
constexpr
|
|
22
|
-
constexpr
|
|
23
|
-
constexpr
|
|
24
|
-
constexpr
|
|
25
|
-
constexpr
|
|
26
|
-
constexpr
|
|
27
|
-
constexpr
|
|
28
|
-
constexpr
|
|
29
|
-
constexpr
|
|
30
|
-
constexpr
|
|
31
|
-
constexpr
|
|
32
|
-
constexpr
|
|
33
|
-
constexpr
|
|
34
|
-
constexpr
|
|
35
|
-
constexpr
|
|
36
|
-
constexpr
|
|
37
|
-
constexpr
|
|
38
|
-
constexpr
|
|
39
|
-
constexpr
|
|
40
|
-
constexpr
|
|
41
|
-
constexpr
|
|
42
|
-
constexpr
|
|
43
|
-
constexpr
|
|
44
|
-
constexpr
|
|
45
|
-
constexpr
|
|
46
|
-
constexpr
|
|
47
|
-
constexpr
|
|
48
|
-
constexpr
|
|
49
|
-
constexpr
|
|
50
|
-
constexpr
|
|
51
|
-
constexpr
|
|
52
|
-
constexpr
|
|
53
|
-
constexpr
|
|
54
|
-
constexpr
|
|
55
|
-
constexpr
|
|
56
|
-
constexpr
|
|
57
|
-
constexpr
|
|
58
|
-
constexpr
|
|
59
|
-
constexpr
|
|
60
|
-
constexpr
|
|
61
|
-
constexpr
|
|
62
|
-
constexpr
|
|
63
|
-
constexpr
|
|
64
|
-
constexpr
|
|
65
|
-
constexpr
|
|
66
|
-
constexpr
|
|
67
|
-
constexpr
|
|
68
|
-
constexpr
|
|
69
|
-
constexpr
|
|
70
|
-
constexpr
|
|
71
|
-
constexpr
|
|
72
|
-
constexpr
|
|
73
|
-
constexpr
|
|
74
|
-
constexpr
|
|
75
|
-
constexpr
|
|
76
|
-
constexpr
|
|
77
|
-
constexpr
|
|
78
|
-
constexpr
|
|
79
|
-
constexpr
|
|
80
|
-
constexpr
|
|
81
|
-
constexpr
|
|
82
|
-
constexpr
|
|
83
|
-
constexpr
|
|
84
|
-
constexpr
|
|
85
|
-
constexpr
|
|
86
|
-
constexpr
|
|
87
|
-
constexpr
|
|
88
|
-
constexpr
|
|
89
|
-
constexpr
|
|
90
|
-
constexpr
|
|
91
|
-
constexpr
|
|
92
|
-
constexpr
|
|
93
|
-
constexpr
|
|
94
|
-
constexpr
|
|
95
|
-
constexpr
|
|
96
|
-
constexpr
|
|
97
|
-
constexpr
|
|
98
|
-
constexpr
|
|
99
|
-
constexpr
|
|
100
|
-
constexpr
|
|
101
|
-
constexpr
|
|
102
|
-
constexpr
|
|
103
|
-
constexpr
|
|
104
|
-
constexpr
|
|
105
|
-
constexpr
|
|
106
|
-
constexpr
|
|
107
|
-
constexpr
|
|
108
|
-
constexpr
|
|
109
|
-
constexpr
|
|
110
|
-
constexpr
|
|
111
|
-
constexpr
|
|
112
|
-
constexpr
|
|
113
|
-
constexpr
|
|
114
|
-
constexpr
|
|
115
|
-
constexpr
|
|
116
|
-
constexpr
|
|
117
|
-
constexpr
|
|
118
|
-
constexpr
|
|
119
|
-
constexpr
|
|
120
|
-
constexpr
|
|
121
|
-
constexpr
|
|
122
|
-
constexpr
|
|
123
|
-
constexpr
|
|
18
|
+
constexpr MTL::PixelFormat kMtlPixelFormatInvalid = MTL::PixelFormat(0);
|
|
19
|
+
constexpr MTL::PixelFormat kMtlPixelFormatA8Unorm = MTL::PixelFormat(1);
|
|
20
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR8Unorm = MTL::PixelFormat(10);
|
|
21
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR8Unorm_sRGB = MTL::PixelFormat(11);
|
|
22
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR8Snorm = MTL::PixelFormat(12);
|
|
23
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR8Uint = MTL::PixelFormat(13);
|
|
24
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR8Sint = MTL::PixelFormat(14);
|
|
25
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR16Unorm = MTL::PixelFormat(20);
|
|
26
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR16Snorm = MTL::PixelFormat(22);
|
|
27
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR16Uint = MTL::PixelFormat(23);
|
|
28
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR16Sint = MTL::PixelFormat(24);
|
|
29
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR16Float = MTL::PixelFormat(25);
|
|
30
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG8Unorm = MTL::PixelFormat(30);
|
|
31
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG8Unorm_sRGB = MTL::PixelFormat(31);
|
|
32
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG8Snorm = MTL::PixelFormat(32);
|
|
33
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG8Uint = MTL::PixelFormat(33);
|
|
34
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG8Sint = MTL::PixelFormat(34);
|
|
35
|
+
constexpr MTL::PixelFormat kMtlPixelFormatB5G6R5Unorm = MTL::PixelFormat(40);
|
|
36
|
+
constexpr MTL::PixelFormat kMtlPixelFormatABGR4Unorm = MTL::PixelFormat(42);
|
|
37
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBGR5A1Unorm = MTL::PixelFormat(43);
|
|
38
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR32Uint = MTL::PixelFormat(53);
|
|
39
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR32Sint = MTL::PixelFormat(54);
|
|
40
|
+
constexpr MTL::PixelFormat kMtlPixelFormatR32Float = MTL::PixelFormat(55);
|
|
41
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG16Unorm = MTL::PixelFormat(60);
|
|
42
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG16Snorm = MTL::PixelFormat(62);
|
|
43
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG16Uint = MTL::PixelFormat(63);
|
|
44
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG16Sint = MTL::PixelFormat(64);
|
|
45
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG16Float = MTL::PixelFormat(65);
|
|
46
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA8Unorm = MTL::PixelFormat(70);
|
|
47
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA8Unorm_sRGB = MTL::PixelFormat(71);
|
|
48
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA8Snorm = MTL::PixelFormat(72);
|
|
49
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA8Uint = MTL::PixelFormat(73);
|
|
50
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA8Sint = MTL::PixelFormat(74);
|
|
51
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBGRA8Unorm = MTL::PixelFormat(80);
|
|
52
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBGRA8Unorm_sRGB = MTL::PixelFormat(81);
|
|
53
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGB10A2Unorm = MTL::PixelFormat(90);
|
|
54
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG11B10Float = MTL::PixelFormat(92);
|
|
55
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGB9E5Float = MTL::PixelFormat(93);
|
|
56
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG32Uint = MTL::PixelFormat(103);
|
|
57
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG32Sint = MTL::PixelFormat(104);
|
|
58
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRG32Float = MTL::PixelFormat(105);
|
|
59
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA16Unorm = MTL::PixelFormat(110);
|
|
60
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA16Snorm = MTL::PixelFormat(112);
|
|
61
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA16Uint = MTL::PixelFormat(113);
|
|
62
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA16Sint = MTL::PixelFormat(114);
|
|
63
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA16Float = MTL::PixelFormat(115);
|
|
64
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA32Uint = MTL::PixelFormat(123);
|
|
65
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA32Sint = MTL::PixelFormat(124);
|
|
66
|
+
constexpr MTL::PixelFormat kMtlPixelFormatRGBA32Float = MTL::PixelFormat(125);
|
|
67
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC1_RGBA = MTL::PixelFormat(130);
|
|
68
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC1_RGBA_sRGB = MTL::PixelFormat(131);
|
|
69
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC2_RGBA = MTL::PixelFormat(132);
|
|
70
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC2_RGBA_sRGB = MTL::PixelFormat(133);
|
|
71
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC3_RGBA = MTL::PixelFormat(134);
|
|
72
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC3_RGBA_sRGB = MTL::PixelFormat(135);
|
|
73
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC4_RUnorm = MTL::PixelFormat(140);
|
|
74
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC5_RGUnorm = MTL::PixelFormat(142);
|
|
75
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC6H_RGBFloat = MTL::PixelFormat(150);
|
|
76
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC7_RGBAUnorm = MTL::PixelFormat(152);
|
|
77
|
+
constexpr MTL::PixelFormat kMtlPixelFormatBC7_RGBAUnorm_sRGB = MTL::PixelFormat(153);
|
|
78
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGB_2BPP = MTL::PixelFormat(160);
|
|
79
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGB_2BPP_sRGB = MTL::PixelFormat(161);
|
|
80
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGB_4BPP = MTL::PixelFormat(162);
|
|
81
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGB_4BPP_sRGB = MTL::PixelFormat(163);
|
|
82
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGBA_2BPP = MTL::PixelFormat(164);
|
|
83
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGBA_2BPP_sRGB = MTL::PixelFormat(165);
|
|
84
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGBA_4BPP = MTL::PixelFormat(166);
|
|
85
|
+
constexpr MTL::PixelFormat kMtlPixelFormatPVRTC_RGBA_4BPP_sRGB = MTL::PixelFormat(167);
|
|
86
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_R11Unorm = MTL::PixelFormat(170);
|
|
87
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_R11Snorm = MTL::PixelFormat(172);
|
|
88
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_RG11Unorm = MTL::PixelFormat(174);
|
|
89
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_RG11Snorm = MTL::PixelFormat(176);
|
|
90
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_RGBA8 = MTL::PixelFormat(178);
|
|
91
|
+
constexpr MTL::PixelFormat kMtlPixelFormatEAC_RGBA8_sRGB = MTL::PixelFormat(179);
|
|
92
|
+
constexpr MTL::PixelFormat kMtlPixelFormatETC2_RGB8 = MTL::PixelFormat(180);
|
|
93
|
+
constexpr MTL::PixelFormat kMtlPixelFormatETC2_RGB8_sRGB = MTL::PixelFormat(181);
|
|
94
|
+
constexpr MTL::PixelFormat kMtlPixelFormatETC2_RGB8A1 = MTL::PixelFormat(182);
|
|
95
|
+
constexpr MTL::PixelFormat kMtlPixelFormatETC2_RGB8A1_sRGB = MTL::PixelFormat(183);
|
|
96
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_4x4_sRGB = MTL::PixelFormat(186);
|
|
97
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_5x4_sRGB = MTL::PixelFormat(187);
|
|
98
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_5x5_sRGB = MTL::PixelFormat(188);
|
|
99
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_6x5_sRGB = MTL::PixelFormat(189);
|
|
100
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_6x6_sRGB = MTL::PixelFormat(190);
|
|
101
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x5_sRGB = MTL::PixelFormat(192);
|
|
102
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x6_sRGB = MTL::PixelFormat(193);
|
|
103
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x8_sRGB = MTL::PixelFormat(194);
|
|
104
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x5_sRGB = MTL::PixelFormat(195);
|
|
105
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x6_sRGB = MTL::PixelFormat(196);
|
|
106
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x8_sRGB = MTL::PixelFormat(197);
|
|
107
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x10_sRGB = MTL::PixelFormat(198);
|
|
108
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_12x10_sRGB = MTL::PixelFormat(199);
|
|
109
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_12x12_sRGB = MTL::PixelFormat(200);
|
|
110
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_4x4_LDR = MTL::PixelFormat(204);
|
|
111
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_5x4_LDR = MTL::PixelFormat(205);
|
|
112
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_5x5_LDR = MTL::PixelFormat(206);
|
|
113
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_6x5_LDR = MTL::PixelFormat(207);
|
|
114
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_6x6_LDR = MTL::PixelFormat(208);
|
|
115
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x5_LDR = MTL::PixelFormat(210);
|
|
116
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x6_LDR = MTL::PixelFormat(211);
|
|
117
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_8x8_LDR = MTL::PixelFormat(212);
|
|
118
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x5_LDR = MTL::PixelFormat(213);
|
|
119
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x6_LDR = MTL::PixelFormat(214);
|
|
120
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x8_LDR = MTL::PixelFormat(215);
|
|
121
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_10x10_LDR = MTL::PixelFormat(216);
|
|
122
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_12x10_LDR = MTL::PixelFormat(217);
|
|
123
|
+
constexpr MTL::PixelFormat kMtlPixelFormatASTC_12x12_LDR = MTL::PixelFormat(218);
|
|
124
|
+
constexpr MTL::PixelFormat kMtlPixelFormatDepth16Unorm = MTL::PixelFormat(250);
|
|
125
|
+
constexpr MTL::PixelFormat kMtlPixelFormatDepth32Float = MTL::PixelFormat(252);
|
|
126
|
+
constexpr MTL::PixelFormat kMtlPixelFormatStencil8 = MTL::PixelFormat(253);
|
|
127
|
+
constexpr MTL::PixelFormat kMtlPixelFormatDepth24Unorm_Stencil8 = MTL::PixelFormat(255);
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
// Copied from renderer_mtl.cpp
|
|
@@ -128,8 +132,8 @@ namespace
|
|
|
128
132
|
{
|
|
129
133
|
struct TextureFormatInfo
|
|
130
134
|
{
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
MTL::PixelFormat m_fmt;
|
|
136
|
+
MTL::PixelFormat m_fmtSrgb;
|
|
133
137
|
};
|
|
134
138
|
|
|
135
139
|
static TextureFormatInfo s_textureFormat[] =
|
|
@@ -145,6 +149,10 @@ namespace
|
|
|
145
149
|
{ kMtlPixelFormatETC2_RGB8, kMtlPixelFormatETC2_RGB8_sRGB, }, // ETC2
|
|
146
150
|
{ kMtlPixelFormatEAC_RGBA8, kMtlPixelFormatEAC_RGBA8_sRGB, }, // ETC2A
|
|
147
151
|
{ kMtlPixelFormatETC2_RGB8A1, kMtlPixelFormatETC2_RGB8A1_sRGB, }, // ETC2A1
|
|
152
|
+
{ kMtlPixelFormatEAC_R11Unorm, kMtlPixelFormatInvalid }, // EACR11 UNORM
|
|
153
|
+
{ kMtlPixelFormatEAC_R11Snorm, kMtlPixelFormatInvalid }, // EACR11 SNORM
|
|
154
|
+
{ kMtlPixelFormatEAC_RG11Unorm, kMtlPixelFormatInvalid }, // EACRG11 UNORM
|
|
155
|
+
{ kMtlPixelFormatEAC_RG11Snorm, kMtlPixelFormatInvalid }, // EACRG11 SNORM
|
|
148
156
|
{ kMtlPixelFormatPVRTC_RGB_2BPP, kMtlPixelFormatPVRTC_RGB_2BPP_sRGB, }, // PTC12
|
|
149
157
|
{ kMtlPixelFormatPVRTC_RGB_4BPP, kMtlPixelFormatPVRTC_RGB_4BPP_sRGB, }, // PTC14
|
|
150
158
|
{ kMtlPixelFormatPVRTC_RGBA_2BPP, kMtlPixelFormatPVRTC_RGBA_2BPP_sRGB, }, // PTC12A
|
|
@@ -247,33 +255,33 @@ namespace Babylon::Plugins
|
|
|
247
255
|
|
|
248
256
|
Graphics::TextureT Get() const
|
|
249
257
|
{
|
|
250
|
-
return m_ptr;
|
|
258
|
+
return m_ptr.get();
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
private:
|
|
254
262
|
static void GetInfo(Graphics::TextureT ptr, std::optional<Graphics::TextureFormatT> overrideFormat, Info& info)
|
|
255
263
|
{
|
|
256
|
-
if (ptr
|
|
264
|
+
if (ptr->textureType() != MTL::TextureType2D && ptr->textureType() != MTL::TextureType2DMultisample)
|
|
257
265
|
{
|
|
258
266
|
throw std::runtime_error{"Unsupported texture type"};
|
|
259
267
|
}
|
|
260
268
|
|
|
261
|
-
info.Width = static_cast<uint16_t>(ptr
|
|
262
|
-
info.Height = static_cast<uint16_t>(ptr
|
|
263
|
-
info.MipLevels = static_cast<uint16_t>(ptr
|
|
264
|
-
info.NumLayers = static_cast<uint16_t>(ptr
|
|
269
|
+
info.Width = static_cast<uint16_t>(ptr->width());
|
|
270
|
+
info.Height = static_cast<uint16_t>(ptr->height());
|
|
271
|
+
info.MipLevels = static_cast<uint16_t>(ptr->mipmapLevelCount());
|
|
272
|
+
info.NumLayers = static_cast<uint16_t>(ptr->arrayLength());
|
|
265
273
|
|
|
266
|
-
if ((ptr
|
|
274
|
+
if ((ptr->usage() & MTL::TextureUsageRenderTarget) != 0)
|
|
267
275
|
{
|
|
268
276
|
info.Flags |= BGFX_TEXTURE_RT;
|
|
269
277
|
|
|
270
|
-
if (ptr
|
|
278
|
+
if (ptr->sampleCount() > 1)
|
|
271
279
|
{
|
|
272
|
-
info.Flags |= BGFX_TEXTURE_MSAA_SAMPLE | RenderTargetSamplesToBgfxMsaaFlag(ptr
|
|
280
|
+
info.Flags |= BGFX_TEXTURE_MSAA_SAMPLE | RenderTargetSamplesToBgfxMsaaFlag(ptr->sampleCount());
|
|
273
281
|
}
|
|
274
282
|
}
|
|
275
283
|
|
|
276
|
-
const auto targetFormat = overrideFormat.has_value() ? overrideFormat.value() : ptr
|
|
284
|
+
const auto targetFormat = overrideFormat.has_value() ? overrideFormat.value() : ptr->pixelFormat();
|
|
277
285
|
for (size_t i = 0; i < BX_COUNTOF(s_textureFormat); ++i)
|
|
278
286
|
{
|
|
279
287
|
const auto& format = s_textureFormat[i];
|
|
@@ -291,10 +299,10 @@ namespace Babylon::Plugins
|
|
|
291
299
|
|
|
292
300
|
void Set(Graphics::TextureT ptr)
|
|
293
301
|
{
|
|
294
|
-
m_ptr = ptr;
|
|
302
|
+
m_ptr = RetainPtr(ptr);
|
|
295
303
|
}
|
|
296
304
|
|
|
297
|
-
|
|
305
|
+
NS::SharedPtr<MTL::Texture> m_ptr;
|
|
298
306
|
};
|
|
299
307
|
}
|
|
300
308
|
|
|
@@ -35,8 +35,8 @@ if(ANDROID)
|
|
|
35
35
|
elseif(APPLE)
|
|
36
36
|
set(ADDITIONAL_LIBRARIES
|
|
37
37
|
PRIVATE "-framework CoreMedia -framework AVFoundation")
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
enable_objc_arc(NativeCamera)
|
|
39
|
+
set_property(TARGET NativeCamera PROPERTY UNITY_BUILD false)
|
|
40
40
|
endif()
|
|
41
41
|
|
|
42
42
|
target_link_libraries(NativeCamera
|
|
@@ -854,10 +854,10 @@ namespace Babylon::Plugins
|
|
|
854
854
|
@implementation CameraTextureDelegate {
|
|
855
855
|
}
|
|
856
856
|
|
|
857
|
-
- (id)init:(CVMetalTextureCacheRef)
|
|
857
|
+
- (id)init:(CVMetalTextureCacheRef)aTextureCache
|
|
858
858
|
{
|
|
859
859
|
self = [super init];
|
|
860
|
-
self->textureCache =
|
|
860
|
+
self->textureCache = aTextureCache;
|
|
861
861
|
#if (TARGET_OS_IPHONE)
|
|
862
862
|
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(OrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
|
|
863
863
|
[self updateOrientation];
|
|
@@ -1019,10 +1019,10 @@ namespace Babylon::Plugins
|
|
|
1019
1019
|
@implementation PhotoCaptureDelegate {
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
- (id)init:(TakePhotoTaskCompletionSource)
|
|
1022
|
+
- (id)init:(TakePhotoTaskCompletionSource)aTaskCompletionSource orientation:(VideoOrientation)anOrientation
|
|
1023
1023
|
{
|
|
1024
|
-
self->taskCompletionSource = std::move(
|
|
1025
|
-
self->orientation =
|
|
1024
|
+
self->taskCompletionSource = std::move(aTaskCompletionSource);
|
|
1025
|
+
self->orientation = anOrientation;
|
|
1026
1026
|
return self;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
@@ -50,7 +50,8 @@ if(BABYLON_NATIVE_PLUGIN_SHADERCACHE)
|
|
|
50
50
|
target_compile_definitions(NativeEngine
|
|
51
51
|
PRIVATE SHADER_CACHE)
|
|
52
52
|
target_link_libraries(NativeEngine
|
|
53
|
-
PRIVATE ShaderCacheInternal
|
|
53
|
+
PRIVATE ShaderCacheInternal
|
|
54
|
+
PRIVATE ShaderCache)
|
|
54
55
|
endif()
|
|
55
56
|
|
|
56
57
|
if(BABYLON_NATIVE_PLUGIN_NATIVEENGINE_COMPILESHADERS)
|
|
@@ -257,7 +257,8 @@ namespace Babylon
|
|
|
257
257
|
image->m_format == bimg::TextureFormat::RGBA16 ||
|
|
258
258
|
image->m_format == bimg::TextureFormat::RGBA16F ||
|
|
259
259
|
image->m_format == bimg::TextureFormat::RG16F ||
|
|
260
|
-
image->m_format == bimg::TextureFormat::RGBA32F
|
|
260
|
+
image->m_format == bimg::TextureFormat::RGBA32F ||
|
|
261
|
+
image->m_format == bimg::TextureFormat::RGBA32U);
|
|
261
262
|
|
|
262
263
|
assert(image->m_depth == 1);
|
|
263
264
|
assert(image->m_numLayers == 1);
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
|
|
10
10
|
#include <bgfx/bgfx.h>
|
|
11
11
|
|
|
12
|
-
#ifdef OPENGL
|
|
13
|
-
constexpr bool IsOpenGL = true;
|
|
14
|
-
#else
|
|
15
|
-
constexpr bool IsOpenGL = false;
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
12
|
namespace
|
|
19
13
|
{
|
|
20
14
|
#ifdef SHADER_COMPILER
|
|
21
15
|
void CheckShaderCompilerAssumptions()
|
|
22
16
|
{
|
|
17
|
+
#ifdef OPENGL
|
|
18
|
+
constexpr bool IsOpenGL = true;
|
|
19
|
+
#else
|
|
20
|
+
constexpr bool IsOpenGL = false;
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
23
|
const auto* caps = bgfx::getCaps();
|
|
24
24
|
if (caps->homogeneousDepth != IsOpenGL || caps->originBottomLeft != IsOpenGL)
|
|
25
25
|
{
|
|
@@ -6,8 +6,7 @@ add_library(NativeOptimizations ${SOURCES})
|
|
|
6
6
|
warnings_as_errors(NativeOptimizations)
|
|
7
7
|
|
|
8
8
|
if(APPLE)
|
|
9
|
-
|
|
10
|
-
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES)
|
|
9
|
+
enable_objc_arc(NativeOptimizations)
|
|
11
10
|
endif()
|
|
12
11
|
|
|
13
12
|
target_include_directories(NativeOptimizations PUBLIC "Include")
|
|
@@ -6,8 +6,7 @@ add_library(NativeTracing ${SOURCES})
|
|
|
6
6
|
warnings_as_errors(NativeTracing)
|
|
7
7
|
|
|
8
8
|
if (APPLE)
|
|
9
|
-
|
|
10
|
-
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES)
|
|
9
|
+
enable_objc_arc(NativeTracing)
|
|
11
10
|
endif()
|
|
12
11
|
|
|
13
12
|
target_include_directories(NativeTracing PUBLIC "Include")
|
|
@@ -19,9 +19,9 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
19
19
|
|
|
20
20
|
// Saves the shader cache to an output file stream.
|
|
21
21
|
// Returns the number of entries in the shader cache.
|
|
22
|
-
uint32_t Save(std::
|
|
22
|
+
uint32_t Save(std::ostream& stream);
|
|
23
23
|
|
|
24
24
|
// Loads the shader cache from an input file stream.
|
|
25
25
|
// Returns the number of entries in the shader cache.
|
|
26
|
-
uint32_t Load(std::
|
|
26
|
+
uint32_t Load(std::istream& stream);
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
31
31
|
ShaderCacheImpl::Instance->Clear();
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
uint32_t Save(std::
|
|
34
|
+
uint32_t Save(std::ostream& stream)
|
|
35
35
|
{
|
|
36
36
|
if (!ShaderCacheImpl::Instance)
|
|
37
37
|
{
|
|
@@ -41,7 +41,7 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
41
41
|
return ShaderCacheImpl::Instance->Save(stream);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
uint32_t Load(std::
|
|
44
|
+
uint32_t Load(std::istream& stream)
|
|
45
45
|
{
|
|
46
46
|
if (!ShaderCacheImpl::Instance)
|
|
47
47
|
{
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
namespace
|
|
4
4
|
{
|
|
5
|
-
void SaveString(std::
|
|
5
|
+
void SaveString(std::ostream& stream, const std::string& string)
|
|
6
6
|
{
|
|
7
7
|
uint32_t stringSize{static_cast<uint32_t>(string.size())};
|
|
8
8
|
stream.write(reinterpret_cast<const char*>(&stringSize), sizeof(uint32_t));
|
|
9
9
|
stream.write(reinterpret_cast<const char*>(string.data()), string.size());
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
void LoadString(std::
|
|
12
|
+
void LoadString(std::istream& stream, std::string& string)
|
|
13
13
|
{
|
|
14
14
|
uint32_t stringSize;
|
|
15
15
|
stream.read(reinterpret_cast<char*>(&stringSize), sizeof(uint32_t));
|
|
@@ -42,7 +42,7 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
42
42
|
m_cache.clear();
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
uint32_t ShaderCacheImpl::Save(std::
|
|
45
|
+
uint32_t ShaderCacheImpl::Save(std::ostream& stream)
|
|
46
46
|
{
|
|
47
47
|
uint32_t cacheVersion{CACHE_VERSION};
|
|
48
48
|
stream.write(reinterpret_cast<const char*>(&cacheVersion), sizeof(uint32_t));
|
|
@@ -79,7 +79,7 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
79
79
|
return cacheSize;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
uint32_t ShaderCacheImpl::Load(std::
|
|
82
|
+
uint32_t ShaderCacheImpl::Load(std::istream& stream)
|
|
83
83
|
{
|
|
84
84
|
uint32_t cacheVersion;
|
|
85
85
|
stream.read(reinterpret_cast<char*>(&cacheVersion), sizeof(uint32_t));
|
|
@@ -16,8 +16,8 @@ namespace Babylon::Plugins::ShaderCache
|
|
|
16
16
|
public:
|
|
17
17
|
ShaderCacheImpl() = default;
|
|
18
18
|
|
|
19
|
-
uint32_t Save(std::
|
|
20
|
-
uint32_t Load(std::
|
|
19
|
+
uint32_t Save(std::ostream& stream);
|
|
20
|
+
uint32_t Load(std::istream& stream);
|
|
21
21
|
|
|
22
22
|
void Clear();
|
|
23
23
|
|
|
@@ -44,8 +44,10 @@ namespace Babylon::ShaderCompilerCommon
|
|
|
44
44
|
{
|
|
45
45
|
return uv;
|
|
46
46
|
}
|
|
47
|
+
|
|
47
48
|
#define texture(x,y) texture(x, flip(y))
|
|
48
49
|
#define textureLod(x,y,z) textureLod(x, flip(y), z)
|
|
50
|
+
#define texelFetch(tex, uv, lod) texelFetch((tex), ivec2((uv).x, textureSize((tex), (lod)).y - 1 - (uv).y), (lod))
|
|
49
51
|
#define SHADER_NAME)";
|
|
50
52
|
|
|
51
53
|
std::string result{source};
|
package/shared/BabylonNative/Repo/Plugins/ShaderCompiler/Source/ShaderCompilerTraversers.cpp
CHANGED
|
@@ -530,6 +530,10 @@ namespace Babylon::ShaderCompilerTraversers
|
|
|
530
530
|
{
|
|
531
531
|
publicType.setVector(type.getVectorSize());
|
|
532
532
|
}
|
|
533
|
+
else
|
|
534
|
+
{
|
|
535
|
+
publicType.setVector(1);
|
|
536
|
+
}
|
|
533
537
|
|
|
534
538
|
TType newType{publicType};
|
|
535
539
|
newType.setBasicType(symbol->getType().getBasicType());
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
if(APPLE)
|
|
2
|
-
set(PLATFORM Apple)
|
|
3
|
-
else()
|
|
4
|
-
set(PLATFORM ${BABYLON_NATIVE_PLATFORM})
|
|
5
|
-
endif()
|
|
6
|
-
|
|
7
1
|
set(SOURCES
|
|
8
2
|
"Include/Babylon/Plugins/TestUtils.h"
|
|
9
3
|
"Source/TestUtils.h"
|
|
10
4
|
"Source/TestUtils.cpp"
|
|
11
|
-
"Source/
|
|
12
|
-
"Source/${PLATFORM}/TestUtilsImpl.${BABYLON_NATIVE_PLATFORM_IMPL_EXT}")
|
|
5
|
+
"Source/TestUtils_${BABYLON_NATIVE_PLATFORM}.${BABYLON_NATIVE_PLATFORM_IMPL_EXT}")
|
|
13
6
|
|
|
14
7
|
add_library(TestUtils ${SOURCES})
|
|
15
8
|
warnings_as_errors(TestUtils)
|
|
@@ -25,5 +18,10 @@ target_link_libraries(TestUtils
|
|
|
25
18
|
|
|
26
19
|
target_compile_definitions(TestUtils PRIVATE GRAPHICS_API=${GRAPHICS_API})
|
|
27
20
|
|
|
21
|
+
if(APPLE)
|
|
22
|
+
enable_objc_arc(TestUtils)
|
|
23
|
+
set_property(TARGET TestUtils PROPERTY UNITY_BUILD false)
|
|
24
|
+
endif()
|
|
25
|
+
|
|
28
26
|
set_property(TARGET TestUtils PROPERTY FOLDER Plugins)
|
|
29
27
|
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})
|
|
@@ -5,10 +5,15 @@
|
|
|
5
5
|
#include <bimg/decode.h>
|
|
6
6
|
#include <bimg/encode.h>
|
|
7
7
|
#include <bx/file.h>
|
|
8
|
-
|
|
9
|
-
#include <sstream>
|
|
8
|
+
|
|
10
9
|
#include <Babylon/JsRuntime.h>
|
|
11
10
|
#include <Babylon/Graphics/DeviceContext.h>
|
|
11
|
+
#include <Babylon/Graphics/Platform.h>
|
|
12
|
+
|
|
13
|
+
#include <functional>
|
|
14
|
+
#include <gsl/span>
|
|
15
|
+
#include <memory>
|
|
16
|
+
#include <sstream>
|
|
12
17
|
|
|
13
18
|
#define STRINGIZEX(x) #x
|
|
14
19
|
#define STRINGIZE(x) STRINGIZEX(x)
|
|
@@ -78,11 +83,20 @@ namespace Babylon::Plugins::Internal
|
|
|
78
83
|
|
|
79
84
|
auto callbackPtr{ std::make_shared<Napi::FunctionReference>(Napi::Persistent(callback)) };
|
|
80
85
|
m_deviceContext.RequestScreenShot([this, callbackPtr{ std::move(callbackPtr) }](std::vector<uint8_t> array) {
|
|
81
|
-
m_runtime.Dispatch([callbackPtr{ std::move(callbackPtr) }, array{ std::move(array) }](Napi::Env env) {
|
|
82
|
-
auto
|
|
83
|
-
auto
|
|
86
|
+
m_runtime.Dispatch([callbackPtr{ std::move(callbackPtr) }, array{ std::move(array) }](Napi::Env env) mutable {
|
|
87
|
+
auto span = gsl::span<uint8_t>{array};
|
|
88
|
+
auto arrayBuffer{ Napi::ArrayBuffer::New(env, span.data(), span.size(), [array = std::move(array)](Napi::Env, void*) {}) };
|
|
89
|
+
auto typedArray{ Napi::Uint8Array::New(env, span.size(), arrayBuffer, 0) };
|
|
84
90
|
callbackPtr->Value().Call({ typedArray });
|
|
85
|
-
});
|
|
86
91
|
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
namespace Babylon::Plugins::TestUtils
|
|
97
|
+
{
|
|
98
|
+
void BABYLON_API Initialize(Napi::Env env, Graphics::WindowT window)
|
|
99
|
+
{
|
|
100
|
+
Internal::TestUtils::CreateInstance(env, window);
|
|
87
101
|
}
|
|
88
102
|
}
|