@babylonjs/react-native 2.0.0 → 2.0.1-preview
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
|
@@ -0,0 +1,1493 @@
|
|
|
1
|
+
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
//
|
|
3
|
+
// Metal/MTLDevice.hpp
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2020-2025 Apple Inc.
|
|
6
|
+
//
|
|
7
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
// you may not use this file except in compliance with the License.
|
|
9
|
+
// You may obtain a copy of the License at
|
|
10
|
+
//
|
|
11
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
//
|
|
13
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
// See the License for the specific language governing permissions and
|
|
17
|
+
// limitations under the License.
|
|
18
|
+
//
|
|
19
|
+
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
#pragma once
|
|
22
|
+
|
|
23
|
+
#include "../Foundation/Foundation.hpp"
|
|
24
|
+
#include "MTL4Counters.hpp"
|
|
25
|
+
#include "MTLArgument.hpp"
|
|
26
|
+
#include "MTLDataType.hpp"
|
|
27
|
+
#include "MTLDefines.hpp"
|
|
28
|
+
#include "MTLHeaderBridge.hpp"
|
|
29
|
+
#include "MTLPixelFormat.hpp"
|
|
30
|
+
#include "MTLPrivate.hpp"
|
|
31
|
+
#include "MTLResource.hpp"
|
|
32
|
+
#include "MTLTexture.hpp"
|
|
33
|
+
#include "MTLTypes.hpp"
|
|
34
|
+
#include <IOSurface/IOSurfaceRef.h>
|
|
35
|
+
#include <cstdint>
|
|
36
|
+
#include <dispatch/dispatch.h>
|
|
37
|
+
|
|
38
|
+
#include <TargetConditionals.h>
|
|
39
|
+
#include <cstdint>
|
|
40
|
+
#include <functional>
|
|
41
|
+
|
|
42
|
+
namespace MTL
|
|
43
|
+
{
|
|
44
|
+
class AccelerationStructure;
|
|
45
|
+
class AccelerationStructureDescriptor;
|
|
46
|
+
class Architecture;
|
|
47
|
+
class ArgumentDescriptor;
|
|
48
|
+
class ArgumentEncoder;
|
|
49
|
+
class BinaryArchive;
|
|
50
|
+
class BinaryArchiveDescriptor;
|
|
51
|
+
class Buffer;
|
|
52
|
+
class BufferBinding;
|
|
53
|
+
class CommandQueue;
|
|
54
|
+
class CommandQueueDescriptor;
|
|
55
|
+
class CompileOptions;
|
|
56
|
+
class ComputePipelineDescriptor;
|
|
57
|
+
class ComputePipelineReflection;
|
|
58
|
+
class ComputePipelineState;
|
|
59
|
+
class CounterSampleBuffer;
|
|
60
|
+
class CounterSampleBufferDescriptor;
|
|
61
|
+
class DepthStencilDescriptor;
|
|
62
|
+
class DepthStencilState;
|
|
63
|
+
class Device;
|
|
64
|
+
class DynamicLibrary;
|
|
65
|
+
class Event;
|
|
66
|
+
class Fence;
|
|
67
|
+
class Function;
|
|
68
|
+
class FunctionConstantValues;
|
|
69
|
+
class FunctionHandle;
|
|
70
|
+
class Heap;
|
|
71
|
+
class HeapDescriptor;
|
|
72
|
+
class IOCommandQueue;
|
|
73
|
+
class IOCommandQueueDescriptor;
|
|
74
|
+
class IOFileHandle;
|
|
75
|
+
class IndirectCommandBuffer;
|
|
76
|
+
class IndirectCommandBufferDescriptor;
|
|
77
|
+
class Library;
|
|
78
|
+
class LogState;
|
|
79
|
+
class LogStateDescriptor;
|
|
80
|
+
class MeshRenderPipelineDescriptor;
|
|
81
|
+
class RasterizationRateMap;
|
|
82
|
+
class RasterizationRateMapDescriptor;
|
|
83
|
+
struct Region;
|
|
84
|
+
class RenderPipelineDescriptor;
|
|
85
|
+
class RenderPipelineReflection;
|
|
86
|
+
class RenderPipelineState;
|
|
87
|
+
class ResidencySet;
|
|
88
|
+
class ResidencySetDescriptor;
|
|
89
|
+
class ResourceViewPoolDescriptor;
|
|
90
|
+
struct SamplePosition;
|
|
91
|
+
class SamplerDescriptor;
|
|
92
|
+
class SamplerState;
|
|
93
|
+
class SharedEvent;
|
|
94
|
+
class SharedEventHandle;
|
|
95
|
+
class SharedTextureHandle;
|
|
96
|
+
class StitchedLibraryDescriptor;
|
|
97
|
+
class Tensor;
|
|
98
|
+
class TensorDescriptor;
|
|
99
|
+
class Texture;
|
|
100
|
+
class TextureDescriptor;
|
|
101
|
+
class TextureViewPool;
|
|
102
|
+
class TileRenderPipelineDescriptor;
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
namespace MTL4
|
|
106
|
+
{
|
|
107
|
+
class Archive;
|
|
108
|
+
class ArgumentTable;
|
|
109
|
+
class ArgumentTableDescriptor;
|
|
110
|
+
class BinaryFunction;
|
|
111
|
+
class CommandAllocator;
|
|
112
|
+
class CommandAllocatorDescriptor;
|
|
113
|
+
class CommandBuffer;
|
|
114
|
+
class CommandQueue;
|
|
115
|
+
class CommandQueueDescriptor;
|
|
116
|
+
class Compiler;
|
|
117
|
+
class CompilerDescriptor;
|
|
118
|
+
class CounterHeap;
|
|
119
|
+
class CounterHeapDescriptor;
|
|
120
|
+
class PipelineDataSetSerializer;
|
|
121
|
+
class PipelineDataSetSerializerDescriptor;
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
namespace MTL
|
|
125
|
+
{
|
|
126
|
+
_MTL_ENUM(NS::Integer, IOCompressionMethod) {
|
|
127
|
+
IOCompressionMethodZlib = 0,
|
|
128
|
+
IOCompressionMethodLZFSE = 1,
|
|
129
|
+
IOCompressionMethodLZ4 = 2,
|
|
130
|
+
IOCompressionMethodLZMA = 3,
|
|
131
|
+
IOCompressionMethodLZBitmap = 4,
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
_MTL_ENUM(NS::UInteger, FeatureSet) {
|
|
135
|
+
FeatureSet_iOS_GPUFamily1_v1 = 0,
|
|
136
|
+
FeatureSet_iOS_GPUFamily2_v1 = 1,
|
|
137
|
+
FeatureSet_iOS_GPUFamily1_v2 = 2,
|
|
138
|
+
FeatureSet_iOS_GPUFamily2_v2 = 3,
|
|
139
|
+
FeatureSet_iOS_GPUFamily3_v1 = 4,
|
|
140
|
+
FeatureSet_iOS_GPUFamily1_v3 = 5,
|
|
141
|
+
FeatureSet_iOS_GPUFamily2_v3 = 6,
|
|
142
|
+
FeatureSet_iOS_GPUFamily3_v2 = 7,
|
|
143
|
+
FeatureSet_iOS_GPUFamily1_v4 = 8,
|
|
144
|
+
FeatureSet_iOS_GPUFamily2_v4 = 9,
|
|
145
|
+
FeatureSet_iOS_GPUFamily3_v3 = 10,
|
|
146
|
+
FeatureSet_iOS_GPUFamily4_v1 = 11,
|
|
147
|
+
FeatureSet_iOS_GPUFamily1_v5 = 12,
|
|
148
|
+
FeatureSet_iOS_GPUFamily2_v5 = 13,
|
|
149
|
+
FeatureSet_iOS_GPUFamily3_v4 = 14,
|
|
150
|
+
FeatureSet_iOS_GPUFamily4_v2 = 15,
|
|
151
|
+
FeatureSet_iOS_GPUFamily5_v1 = 16,
|
|
152
|
+
FeatureSet_macOS_GPUFamily1_v1 = 10000,
|
|
153
|
+
FeatureSet_OSX_GPUFamily1_v1 = 10000,
|
|
154
|
+
FeatureSet_macOS_GPUFamily1_v2 = 10001,
|
|
155
|
+
FeatureSet_OSX_GPUFamily1_v2 = 10001,
|
|
156
|
+
FeatureSet_macOS_ReadWriteTextureTier2 = 10002,
|
|
157
|
+
FeatureSet_OSX_ReadWriteTextureTier2 = 10002,
|
|
158
|
+
FeatureSet_macOS_GPUFamily1_v3 = 10003,
|
|
159
|
+
FeatureSet_macOS_GPUFamily1_v4 = 10004,
|
|
160
|
+
FeatureSet_macOS_GPUFamily2_v1 = 10005,
|
|
161
|
+
FeatureSet_watchOS_GPUFamily1_v1 = 20000,
|
|
162
|
+
FeatureSet_WatchOS_GPUFamily1_v1 = 20000,
|
|
163
|
+
FeatureSet_watchOS_GPUFamily2_v1 = 20001,
|
|
164
|
+
FeatureSet_WatchOS_GPUFamily2_v1 = 20001,
|
|
165
|
+
FeatureSet_tvOS_GPUFamily1_v1 = 30000,
|
|
166
|
+
FeatureSet_TVOS_GPUFamily1_v1 = 30000,
|
|
167
|
+
FeatureSet_tvOS_GPUFamily1_v2 = 30001,
|
|
168
|
+
FeatureSet_tvOS_GPUFamily1_v3 = 30002,
|
|
169
|
+
FeatureSet_tvOS_GPUFamily2_v1 = 30003,
|
|
170
|
+
FeatureSet_tvOS_GPUFamily1_v4 = 30004,
|
|
171
|
+
FeatureSet_tvOS_GPUFamily2_v2 = 30005,
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
_MTL_ENUM(NS::Integer, GPUFamily) {
|
|
175
|
+
GPUFamilyApple1 = 1001,
|
|
176
|
+
GPUFamilyApple2 = 1002,
|
|
177
|
+
GPUFamilyApple3 = 1003,
|
|
178
|
+
GPUFamilyApple4 = 1004,
|
|
179
|
+
GPUFamilyApple5 = 1005,
|
|
180
|
+
GPUFamilyApple6 = 1006,
|
|
181
|
+
GPUFamilyApple7 = 1007,
|
|
182
|
+
GPUFamilyApple8 = 1008,
|
|
183
|
+
GPUFamilyApple9 = 1009,
|
|
184
|
+
GPUFamilyApple10 = 1010,
|
|
185
|
+
GPUFamilyMac1 = 2001,
|
|
186
|
+
GPUFamilyMac2 = 2002,
|
|
187
|
+
GPUFamilyCommon1 = 3001,
|
|
188
|
+
GPUFamilyCommon2 = 3002,
|
|
189
|
+
GPUFamilyCommon3 = 3003,
|
|
190
|
+
GPUFamilyMacCatalyst1 = 4001,
|
|
191
|
+
GPUFamilyMacCatalyst2 = 4002,
|
|
192
|
+
GPUFamilyMetal3 = 5001,
|
|
193
|
+
GPUFamilyMetal4 = 5002,
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
_MTL_ENUM(NS::UInteger, DeviceLocation) {
|
|
197
|
+
DeviceLocationBuiltIn = 0,
|
|
198
|
+
DeviceLocationSlot = 1,
|
|
199
|
+
DeviceLocationExternal = 2,
|
|
200
|
+
DeviceLocationUnspecified = NS::UIntegerMax,
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
_MTL_ENUM(NS::UInteger, ReadWriteTextureTier) {
|
|
204
|
+
ReadWriteTextureTierNone = 0,
|
|
205
|
+
ReadWriteTextureTier1 = 1,
|
|
206
|
+
ReadWriteTextureTier2 = 2,
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
_MTL_ENUM(NS::UInteger, ArgumentBuffersTier) {
|
|
210
|
+
ArgumentBuffersTier1 = 0,
|
|
211
|
+
ArgumentBuffersTier2 = 1,
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
_MTL_ENUM(NS::UInteger, SparseTextureRegionAlignmentMode) {
|
|
215
|
+
SparseTextureRegionAlignmentModeOutward = 0,
|
|
216
|
+
SparseTextureRegionAlignmentModeInward = 1,
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
_MTL_ENUM(NS::UInteger, CounterSamplingPoint) {
|
|
220
|
+
CounterSamplingPointAtStageBoundary = 0,
|
|
221
|
+
CounterSamplingPointAtDrawBoundary = 1,
|
|
222
|
+
CounterSamplingPointAtDispatchBoundary = 2,
|
|
223
|
+
CounterSamplingPointAtTileDispatchBoundary = 3,
|
|
224
|
+
CounterSamplingPointAtBlitBoundary = 4,
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
_MTL_OPTIONS(NS::UInteger, PipelineOption) {
|
|
228
|
+
PipelineOptionNone = 0,
|
|
229
|
+
PipelineOptionArgumentInfo = 1,
|
|
230
|
+
PipelineOptionBindingInfo = 1,
|
|
231
|
+
PipelineOptionBufferTypeInfo = 1 << 1,
|
|
232
|
+
PipelineOptionFailOnBinaryArchiveMiss = 1 << 2,
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
using DeviceNotificationName = NS::String*;
|
|
236
|
+
using DeviceNotificationHandlerBlock = void (^)(MTL::Device* pDevice, MTL::DeviceNotificationName notifyName);
|
|
237
|
+
using DeviceNotificationHandlerFunction = std::function<void(MTL::Device* pDevice, MTL::DeviceNotificationName notifyName)>;
|
|
238
|
+
using AutoreleasedComputePipelineReflection = MTL::ComputePipelineReflection*;
|
|
239
|
+
using AutoreleasedRenderPipelineReflection = MTL::RenderPipelineReflection*;
|
|
240
|
+
using NewLibraryCompletionHandler = void (^)(MTL::Library*, NS::Error*);
|
|
241
|
+
using NewLibraryCompletionHandlerFunction = std::function<void(MTL::Library*, NS::Error*)>;
|
|
242
|
+
using NewRenderPipelineStateCompletionHandler = void (^)(MTL::RenderPipelineState*, NS::Error*);
|
|
243
|
+
using NewRenderPipelineStateCompletionHandlerFunction = std::function<void(MTL::RenderPipelineState*, NS::Error*)>;
|
|
244
|
+
using NewRenderPipelineStateWithReflectionCompletionHandler = void (^)(MTL::RenderPipelineState*, MTL::RenderPipelineReflection*, NS::Error*);
|
|
245
|
+
using NewRenderPipelineStateWithReflectionCompletionHandlerFunction = std::function<void(MTL::RenderPipelineState*, MTL::RenderPipelineReflection*, NS::Error*)>;
|
|
246
|
+
using NewComputePipelineStateCompletionHandler = void (^)(MTL::ComputePipelineState*, NS::Error*);
|
|
247
|
+
using NewComputePipelineStateCompletionHandlerFunction = std::function<void(MTL::ComputePipelineState*, NS::Error*)>;
|
|
248
|
+
using NewComputePipelineStateWithReflectionCompletionHandler = void (^)(MTL::ComputePipelineState*, MTL::ComputePipelineReflection*, NS::Error*);
|
|
249
|
+
using NewComputePipelineStateWithReflectionCompletionHandlerFunction = std::function<void(MTL::ComputePipelineState*, MTL::ComputePipelineReflection*, NS::Error*)>;
|
|
250
|
+
using Timestamp = std::uint64_t;
|
|
251
|
+
|
|
252
|
+
_MTL_CONST(DeviceNotificationName, DeviceWasAddedNotification);
|
|
253
|
+
_MTL_CONST(DeviceNotificationName, DeviceRemovalRequestedNotification);
|
|
254
|
+
_MTL_CONST(DeviceNotificationName, DeviceWasRemovedNotification);
|
|
255
|
+
_MTL_CONST(NS::ErrorUserInfoKey, CommandBufferEncoderInfoErrorKey);
|
|
256
|
+
Device* CreateSystemDefaultDevice();
|
|
257
|
+
NS::Array* CopyAllDevices();
|
|
258
|
+
NS::Array* CopyAllDevicesWithObserver(NS::Object** pOutObserver, MTL::DeviceNotificationHandlerBlock handler);
|
|
259
|
+
NS::Array* CopyAllDevicesWithObserver(NS::Object** pOutObserver, const MTL::DeviceNotificationHandlerFunction& handler);
|
|
260
|
+
void RemoveDeviceObserver(const NS::Object* pObserver);
|
|
261
|
+
struct AccelerationStructureSizes
|
|
262
|
+
{
|
|
263
|
+
NS::UInteger accelerationStructureSize;
|
|
264
|
+
NS::UInteger buildScratchBufferSize;
|
|
265
|
+
NS::UInteger refitScratchBufferSize;
|
|
266
|
+
} _MTL_PACKED;
|
|
267
|
+
|
|
268
|
+
struct SizeAndAlign
|
|
269
|
+
{
|
|
270
|
+
NS::UInteger size;
|
|
271
|
+
NS::UInteger align;
|
|
272
|
+
} _MTL_PACKED;
|
|
273
|
+
|
|
274
|
+
class ArgumentDescriptor : public NS::Copying<ArgumentDescriptor>
|
|
275
|
+
{
|
|
276
|
+
public:
|
|
277
|
+
BindingAccess access() const;
|
|
278
|
+
|
|
279
|
+
static ArgumentDescriptor* alloc();
|
|
280
|
+
|
|
281
|
+
static ArgumentDescriptor* argumentDescriptor();
|
|
282
|
+
|
|
283
|
+
NS::UInteger arrayLength() const;
|
|
284
|
+
|
|
285
|
+
NS::UInteger constantBlockAlignment() const;
|
|
286
|
+
|
|
287
|
+
DataType dataType() const;
|
|
288
|
+
|
|
289
|
+
NS::UInteger index() const;
|
|
290
|
+
|
|
291
|
+
ArgumentDescriptor* init();
|
|
292
|
+
|
|
293
|
+
void setAccess(MTL::BindingAccess access);
|
|
294
|
+
|
|
295
|
+
void setArrayLength(NS::UInteger arrayLength);
|
|
296
|
+
|
|
297
|
+
void setConstantBlockAlignment(NS::UInteger constantBlockAlignment);
|
|
298
|
+
|
|
299
|
+
void setDataType(MTL::DataType dataType);
|
|
300
|
+
|
|
301
|
+
void setIndex(NS::UInteger index);
|
|
302
|
+
|
|
303
|
+
void setTextureType(MTL::TextureType textureType);
|
|
304
|
+
TextureType textureType() const;
|
|
305
|
+
};
|
|
306
|
+
class Architecture : public NS::Copying<Architecture>
|
|
307
|
+
{
|
|
308
|
+
public:
|
|
309
|
+
static Architecture* alloc();
|
|
310
|
+
|
|
311
|
+
Architecture* init();
|
|
312
|
+
|
|
313
|
+
NS::String* name() const;
|
|
314
|
+
};
|
|
315
|
+
class Device : public NS::Referencing<Device>
|
|
316
|
+
{
|
|
317
|
+
public:
|
|
318
|
+
AccelerationStructureSizes accelerationStructureSizes(const MTL::AccelerationStructureDescriptor* descriptor);
|
|
319
|
+
|
|
320
|
+
Architecture* architecture() const;
|
|
321
|
+
|
|
322
|
+
bool areBarycentricCoordsSupported() const;
|
|
323
|
+
|
|
324
|
+
bool areProgrammableSamplePositionsSupported() const;
|
|
325
|
+
|
|
326
|
+
bool areRasterOrderGroupsSupported() const;
|
|
327
|
+
|
|
328
|
+
ArgumentBuffersTier argumentBuffersSupport() const;
|
|
329
|
+
|
|
330
|
+
[[deprecated("please use areBarycentricCoordsSupported instead")]]
|
|
331
|
+
bool barycentricCoordsSupported() const;
|
|
332
|
+
|
|
333
|
+
void convertSparsePixelRegions(const MTL::Region* pixelRegions, MTL::Region* tileRegions, MTL::Size tileSize, MTL::SparseTextureRegionAlignmentMode mode, NS::UInteger numRegions);
|
|
334
|
+
|
|
335
|
+
void convertSparseTileRegions(const MTL::Region* tileRegions, MTL::Region* pixelRegions, MTL::Size tileSize, NS::UInteger numRegions);
|
|
336
|
+
|
|
337
|
+
NS::Array* counterSets() const;
|
|
338
|
+
|
|
339
|
+
NS::UInteger currentAllocatedSize() const;
|
|
340
|
+
|
|
341
|
+
[[deprecated("please use isDepth24Stencil8PixelFormatSupported instead")]]
|
|
342
|
+
bool depth24Stencil8PixelFormatSupported() const;
|
|
343
|
+
|
|
344
|
+
FunctionHandle* functionHandle(const MTL::Function* function);
|
|
345
|
+
FunctionHandle* functionHandle(const MTL4::BinaryFunction* function);
|
|
346
|
+
|
|
347
|
+
void getDefaultSamplePositions(MTL::SamplePosition* positions, NS::UInteger count);
|
|
348
|
+
|
|
349
|
+
bool hasUnifiedMemory() const;
|
|
350
|
+
|
|
351
|
+
[[deprecated("please use isHeadless instead")]]
|
|
352
|
+
bool headless() const;
|
|
353
|
+
|
|
354
|
+
SizeAndAlign heapAccelerationStructureSizeAndAlign(NS::UInteger size);
|
|
355
|
+
SizeAndAlign heapAccelerationStructureSizeAndAlign(const MTL::AccelerationStructureDescriptor* descriptor);
|
|
356
|
+
|
|
357
|
+
SizeAndAlign heapBufferSizeAndAlign(NS::UInteger length, MTL::ResourceOptions options);
|
|
358
|
+
|
|
359
|
+
SizeAndAlign heapTextureSizeAndAlign(const MTL::TextureDescriptor* desc);
|
|
360
|
+
|
|
361
|
+
bool isDepth24Stencil8PixelFormatSupported() const;
|
|
362
|
+
|
|
363
|
+
bool isHeadless() const;
|
|
364
|
+
|
|
365
|
+
bool isLowPower() const;
|
|
366
|
+
|
|
367
|
+
bool isRemovable() const;
|
|
368
|
+
|
|
369
|
+
DeviceLocation location() const;
|
|
370
|
+
NS::UInteger locationNumber() const;
|
|
371
|
+
|
|
372
|
+
[[deprecated("please use isLowPower instead")]]
|
|
373
|
+
bool lowPower() const;
|
|
374
|
+
|
|
375
|
+
NS::UInteger maxArgumentBufferSamplerCount() const;
|
|
376
|
+
|
|
377
|
+
NS::UInteger maxBufferLength() const;
|
|
378
|
+
|
|
379
|
+
NS::UInteger maxThreadgroupMemoryLength() const;
|
|
380
|
+
|
|
381
|
+
Size maxThreadsPerThreadgroup() const;
|
|
382
|
+
|
|
383
|
+
uint64_t maxTransferRate() const;
|
|
384
|
+
|
|
385
|
+
NS::UInteger maximumConcurrentCompilationTaskCount() const;
|
|
386
|
+
|
|
387
|
+
NS::UInteger minimumLinearTextureAlignmentForPixelFormat(MTL::PixelFormat format);
|
|
388
|
+
|
|
389
|
+
NS::UInteger minimumTextureBufferAlignmentForPixelFormat(MTL::PixelFormat format);
|
|
390
|
+
|
|
391
|
+
NS::String* name() const;
|
|
392
|
+
|
|
393
|
+
AccelerationStructure* newAccelerationStructure(NS::UInteger size);
|
|
394
|
+
AccelerationStructure* newAccelerationStructure(const MTL::AccelerationStructureDescriptor* descriptor);
|
|
395
|
+
|
|
396
|
+
MTL4::Archive* newArchive(const NS::URL* url, NS::Error** error);
|
|
397
|
+
|
|
398
|
+
ArgumentEncoder* newArgumentEncoder(const NS::Array* arguments);
|
|
399
|
+
ArgumentEncoder* newArgumentEncoder(const MTL::BufferBinding* bufferBinding);
|
|
400
|
+
|
|
401
|
+
MTL4::ArgumentTable* newArgumentTable(const MTL4::ArgumentTableDescriptor* descriptor, NS::Error** error);
|
|
402
|
+
|
|
403
|
+
BinaryArchive* newBinaryArchive(const MTL::BinaryArchiveDescriptor* descriptor, NS::Error** error);
|
|
404
|
+
|
|
405
|
+
Buffer* newBuffer(NS::UInteger length, MTL::ResourceOptions options);
|
|
406
|
+
Buffer* newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options);
|
|
407
|
+
Buffer* newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, void (^deallocator)(void*, NS::UInteger));
|
|
408
|
+
Buffer* newBuffer(NS::UInteger length, MTL::ResourceOptions options, MTL::SparsePageSize placementSparsePageSize);
|
|
409
|
+
|
|
410
|
+
MTL4::CommandAllocator* newCommandAllocator();
|
|
411
|
+
MTL4::CommandAllocator* newCommandAllocator(const MTL4::CommandAllocatorDescriptor* descriptor, NS::Error** error);
|
|
412
|
+
|
|
413
|
+
MTL4::CommandBuffer* newCommandBuffer();
|
|
414
|
+
|
|
415
|
+
CommandQueue* newCommandQueue();
|
|
416
|
+
CommandQueue* newCommandQueue(NS::UInteger maxCommandBufferCount);
|
|
417
|
+
CommandQueue* newCommandQueue(const MTL::CommandQueueDescriptor* descriptor);
|
|
418
|
+
|
|
419
|
+
MTL4::Compiler* newCompiler(const MTL4::CompilerDescriptor* descriptor, NS::Error** error);
|
|
420
|
+
|
|
421
|
+
ComputePipelineState* newComputePipelineState(const MTL::Function* computeFunction, NS::Error** error);
|
|
422
|
+
ComputePipelineState* newComputePipelineState(const MTL::Function* computeFunction, MTL::PipelineOption options, const MTL::AutoreleasedComputePipelineReflection* reflection, NS::Error** error);
|
|
423
|
+
void newComputePipelineState(const MTL::Function* computeFunction, const MTL::NewComputePipelineStateCompletionHandler completionHandler);
|
|
424
|
+
void newComputePipelineState(const MTL::Function* computeFunction, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandler completionHandler);
|
|
425
|
+
ComputePipelineState* newComputePipelineState(const MTL::ComputePipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedComputePipelineReflection* reflection, NS::Error** error);
|
|
426
|
+
void newComputePipelineState(const MTL::ComputePipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandler completionHandler);
|
|
427
|
+
void newComputePipelineState(const MTL::Function* pFunction, const MTL::NewComputePipelineStateCompletionHandlerFunction& completionHandler);
|
|
428
|
+
void newComputePipelineState(const MTL::Function* pFunction, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandlerFunction& completionHandler);
|
|
429
|
+
void newComputePipelineState(const MTL::ComputePipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandlerFunction& completionHandler);
|
|
430
|
+
|
|
431
|
+
MTL4::CounterHeap* newCounterHeap(const MTL4::CounterHeapDescriptor* descriptor, NS::Error** error);
|
|
432
|
+
|
|
433
|
+
CounterSampleBuffer* newCounterSampleBuffer(const MTL::CounterSampleBufferDescriptor* descriptor, NS::Error** error);
|
|
434
|
+
|
|
435
|
+
Library* newDefaultLibrary();
|
|
436
|
+
Library* newDefaultLibrary(const NS::Bundle* bundle, NS::Error** error);
|
|
437
|
+
|
|
438
|
+
DepthStencilState* newDepthStencilState(const MTL::DepthStencilDescriptor* descriptor);
|
|
439
|
+
|
|
440
|
+
DynamicLibrary* newDynamicLibrary(const MTL::Library* library, NS::Error** error);
|
|
441
|
+
DynamicLibrary* newDynamicLibrary(const NS::URL* url, NS::Error** error);
|
|
442
|
+
|
|
443
|
+
Event* newEvent();
|
|
444
|
+
|
|
445
|
+
Fence* newFence();
|
|
446
|
+
|
|
447
|
+
Heap* newHeap(const MTL::HeapDescriptor* descriptor);
|
|
448
|
+
|
|
449
|
+
IOCommandQueue* newIOCommandQueue(const MTL::IOCommandQueueDescriptor* descriptor, NS::Error** error);
|
|
450
|
+
|
|
451
|
+
IOFileHandle* newIOFileHandle(const NS::URL* url, NS::Error** error);
|
|
452
|
+
IOFileHandle* newIOFileHandle(const NS::URL* url, MTL::IOCompressionMethod compressionMethod, NS::Error** error);
|
|
453
|
+
|
|
454
|
+
IOFileHandle* newIOHandle(const NS::URL* url, NS::Error** error);
|
|
455
|
+
IOFileHandle* newIOHandle(const NS::URL* url, MTL::IOCompressionMethod compressionMethod, NS::Error** error);
|
|
456
|
+
|
|
457
|
+
IndirectCommandBuffer* newIndirectCommandBuffer(const MTL::IndirectCommandBufferDescriptor* descriptor, NS::UInteger maxCount, MTL::ResourceOptions options);
|
|
458
|
+
|
|
459
|
+
Library* newLibrary(const NS::String* filepath, NS::Error** error);
|
|
460
|
+
Library* newLibrary(const NS::URL* url, NS::Error** error);
|
|
461
|
+
Library* newLibrary(const dispatch_data_t data, NS::Error** error);
|
|
462
|
+
Library* newLibrary(const NS::String* source, const MTL::CompileOptions* options, NS::Error** error);
|
|
463
|
+
void newLibrary(const NS::String* source, const MTL::CompileOptions* options, const MTL::NewLibraryCompletionHandler completionHandler);
|
|
464
|
+
Library* newLibrary(const MTL::StitchedLibraryDescriptor* descriptor, NS::Error** error);
|
|
465
|
+
void newLibrary(const MTL::StitchedLibraryDescriptor* descriptor, const MTL::NewLibraryCompletionHandler completionHandler);
|
|
466
|
+
void newLibrary(const NS::String* pSource, const MTL::CompileOptions* pOptions, const MTL::NewLibraryCompletionHandlerFunction& completionHandler);
|
|
467
|
+
void newLibrary(const MTL::StitchedLibraryDescriptor* pDescriptor, const MTL::NewLibraryCompletionHandlerFunction& completionHandler);
|
|
468
|
+
|
|
469
|
+
LogState* newLogState(const MTL::LogStateDescriptor* descriptor, NS::Error** error);
|
|
470
|
+
|
|
471
|
+
MTL4::CommandQueue* newMTL4CommandQueue();
|
|
472
|
+
MTL4::CommandQueue* newMTL4CommandQueue(const MTL4::CommandQueueDescriptor* descriptor, NS::Error** error);
|
|
473
|
+
|
|
474
|
+
MTL4::PipelineDataSetSerializer* newPipelineDataSetSerializer(const MTL4::PipelineDataSetSerializerDescriptor* descriptor);
|
|
475
|
+
|
|
476
|
+
RasterizationRateMap* newRasterizationRateMap(const MTL::RasterizationRateMapDescriptor* descriptor);
|
|
477
|
+
|
|
478
|
+
RenderPipelineState* newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, NS::Error** error);
|
|
479
|
+
RenderPipelineState* newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error);
|
|
480
|
+
void newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, const MTL::NewRenderPipelineStateCompletionHandler completionHandler);
|
|
481
|
+
void newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler);
|
|
482
|
+
RenderPipelineState* newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error);
|
|
483
|
+
void newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler);
|
|
484
|
+
RenderPipelineState* newRenderPipelineState(const MTL::MeshRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error);
|
|
485
|
+
void newRenderPipelineState(const MTL::MeshRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler);
|
|
486
|
+
void newRenderPipelineState(const MTL::RenderPipelineDescriptor* pDescriptor, const MTL::NewRenderPipelineStateCompletionHandlerFunction& completionHandler);
|
|
487
|
+
void newRenderPipelineState(const MTL::RenderPipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction& completionHandler);
|
|
488
|
+
void newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction& completionHandler);
|
|
489
|
+
|
|
490
|
+
ResidencySet* newResidencySet(const MTL::ResidencySetDescriptor* desc, NS::Error** error);
|
|
491
|
+
|
|
492
|
+
SamplerState* newSamplerState(const MTL::SamplerDescriptor* descriptor);
|
|
493
|
+
|
|
494
|
+
SharedEvent* newSharedEvent();
|
|
495
|
+
SharedEvent* newSharedEvent(const MTL::SharedEventHandle* sharedEventHandle);
|
|
496
|
+
|
|
497
|
+
Texture* newSharedTexture(const MTL::TextureDescriptor* descriptor);
|
|
498
|
+
Texture* newSharedTexture(const MTL::SharedTextureHandle* sharedHandle);
|
|
499
|
+
|
|
500
|
+
Tensor* newTensor(const MTL::TensorDescriptor* descriptor, NS::Error** error);
|
|
501
|
+
|
|
502
|
+
Texture* newTexture(const MTL::TextureDescriptor* descriptor);
|
|
503
|
+
Texture* newTexture(const MTL::TextureDescriptor* descriptor, const IOSurfaceRef iosurface, NS::UInteger plane);
|
|
504
|
+
TextureViewPool* newTextureViewPool(const MTL::ResourceViewPoolDescriptor* descriptor, NS::Error** error);
|
|
505
|
+
|
|
506
|
+
uint32_t peerCount() const;
|
|
507
|
+
|
|
508
|
+
uint64_t peerGroupID() const;
|
|
509
|
+
|
|
510
|
+
uint32_t peerIndex() const;
|
|
511
|
+
|
|
512
|
+
[[deprecated("please use areProgrammableSamplePositionsSupported instead")]]
|
|
513
|
+
bool programmableSamplePositionsSupported() const;
|
|
514
|
+
|
|
515
|
+
uint64_t queryTimestampFrequency();
|
|
516
|
+
|
|
517
|
+
[[deprecated("please use areRasterOrderGroupsSupported instead")]]
|
|
518
|
+
bool rasterOrderGroupsSupported() const;
|
|
519
|
+
|
|
520
|
+
ReadWriteTextureTier readWriteTextureSupport() const;
|
|
521
|
+
|
|
522
|
+
uint64_t recommendedMaxWorkingSetSize() const;
|
|
523
|
+
|
|
524
|
+
uint64_t registryID() const;
|
|
525
|
+
|
|
526
|
+
[[deprecated("please use isRemovable instead")]]
|
|
527
|
+
bool removable() const;
|
|
528
|
+
|
|
529
|
+
void sampleTimestamps(MTL::Timestamp* cpuTimestamp, MTL::Timestamp* gpuTimestamp);
|
|
530
|
+
|
|
531
|
+
void setShouldMaximizeConcurrentCompilation(bool shouldMaximizeConcurrentCompilation);
|
|
532
|
+
bool shouldMaximizeConcurrentCompilation() const;
|
|
533
|
+
|
|
534
|
+
NS::UInteger sizeOfCounterHeapEntry(MTL4::CounterHeapType type);
|
|
535
|
+
|
|
536
|
+
Size sparseTileSize(MTL::TextureType textureType, MTL::PixelFormat pixelFormat, NS::UInteger sampleCount);
|
|
537
|
+
Size sparseTileSize(MTL::TextureType textureType, MTL::PixelFormat pixelFormat, NS::UInteger sampleCount, MTL::SparsePageSize sparsePageSize);
|
|
538
|
+
NS::UInteger sparseTileSizeInBytes() const;
|
|
539
|
+
NS::UInteger sparseTileSizeInBytes(MTL::SparsePageSize sparsePageSize);
|
|
540
|
+
|
|
541
|
+
bool supports32BitFloatFiltering() const;
|
|
542
|
+
|
|
543
|
+
bool supports32BitMSAA() const;
|
|
544
|
+
|
|
545
|
+
bool supportsBCTextureCompression() const;
|
|
546
|
+
|
|
547
|
+
bool supportsCounterSampling(MTL::CounterSamplingPoint samplingPoint);
|
|
548
|
+
|
|
549
|
+
bool supportsDynamicLibraries() const;
|
|
550
|
+
|
|
551
|
+
bool supportsFamily(MTL::GPUFamily gpuFamily);
|
|
552
|
+
|
|
553
|
+
bool supportsFeatureSet(MTL::FeatureSet featureSet);
|
|
554
|
+
|
|
555
|
+
bool supportsFunctionPointers() const;
|
|
556
|
+
bool supportsFunctionPointersFromRender() const;
|
|
557
|
+
|
|
558
|
+
bool supportsPrimitiveMotionBlur() const;
|
|
559
|
+
|
|
560
|
+
bool supportsPullModelInterpolation() const;
|
|
561
|
+
|
|
562
|
+
bool supportsQueryTextureLOD() const;
|
|
563
|
+
|
|
564
|
+
bool supportsRasterizationRateMap(NS::UInteger layerCount);
|
|
565
|
+
|
|
566
|
+
bool supportsRaytracing() const;
|
|
567
|
+
bool supportsRaytracingFromRender() const;
|
|
568
|
+
|
|
569
|
+
bool supportsRenderDynamicLibraries() const;
|
|
570
|
+
|
|
571
|
+
bool supportsShaderBarycentricCoordinates() const;
|
|
572
|
+
|
|
573
|
+
bool supportsTextureSampleCount(NS::UInteger sampleCount);
|
|
574
|
+
|
|
575
|
+
bool supportsVertexAmplificationCount(NS::UInteger count);
|
|
576
|
+
|
|
577
|
+
SizeAndAlign tensorSizeAndAlign(const MTL::TensorDescriptor* descriptor);
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
#if defined(MTL_PRIVATE_IMPLEMENTATION)
|
|
583
|
+
extern "C" MTL::Device* MTLCreateSystemDefaultDevice();
|
|
584
|
+
extern "C" NS::Array* MTLCopyAllDevices();
|
|
585
|
+
extern "C" NS::Array* MTLCopyAllDevicesWithObserver(NS::Object**, MTL::DeviceNotificationHandlerBlock);
|
|
586
|
+
extern "C" void MTLRemoveDeviceObserver(const NS::Object*);
|
|
587
|
+
_MTL_PRIVATE_DEF_WEAK_CONST(MTL::DeviceNotificationName, DeviceWasAddedNotification);
|
|
588
|
+
_MTL_PRIVATE_DEF_WEAK_CONST(MTL::DeviceNotificationName, DeviceRemovalRequestedNotification);
|
|
589
|
+
_MTL_PRIVATE_DEF_WEAK_CONST(MTL::DeviceNotificationName, DeviceWasRemovedNotification);
|
|
590
|
+
_MTL_PRIVATE_DEF_CONST(NS::ErrorUserInfoKey, CommandBufferEncoderInfoErrorKey);
|
|
591
|
+
_NS_EXPORT MTL::Device* MTL::CreateSystemDefaultDevice()
|
|
592
|
+
{
|
|
593
|
+
return ::MTLCreateSystemDefaultDevice();
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
_NS_EXPORT NS::Array* MTL::CopyAllDevices()
|
|
597
|
+
{
|
|
598
|
+
#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 180000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
|
|
599
|
+
return ::MTLCopyAllDevices();
|
|
600
|
+
#else
|
|
601
|
+
return nullptr;
|
|
602
|
+
#endif
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
_NS_EXPORT NS::Array* MTL::CopyAllDevicesWithObserver(NS::Object** pOutObserver, MTL::DeviceNotificationHandlerBlock handler)
|
|
606
|
+
{
|
|
607
|
+
#if TARGET_OS_OSX
|
|
608
|
+
return ::MTLCopyAllDevicesWithObserver(pOutObserver, handler);
|
|
609
|
+
#else
|
|
610
|
+
(void)pOutObserver;
|
|
611
|
+
(void)handler;
|
|
612
|
+
return nullptr;
|
|
613
|
+
#endif // TARGET_OS_OSX
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
_NS_EXPORT NS::Array* MTL::CopyAllDevicesWithObserver(NS::Object** pOutObserver, const MTL::DeviceNotificationHandlerFunction& handler)
|
|
617
|
+
{
|
|
618
|
+
__block DeviceNotificationHandlerFunction function = handler;
|
|
619
|
+
return CopyAllDevicesWithObserver(pOutObserver, ^(Device* pDevice, DeviceNotificationName pNotificationName) { function(pDevice, pNotificationName); });
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
_NS_EXPORT void MTL::RemoveDeviceObserver(const NS::Object* pObserver)
|
|
623
|
+
{
|
|
624
|
+
(void)pObserver;
|
|
625
|
+
#if TARGET_OS_OSX
|
|
626
|
+
::MTLRemoveDeviceObserver(pObserver);
|
|
627
|
+
#endif // TARGET_OS_OSX
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
#endif // MTL_PRIVATE_IMPLEMENTATION
|
|
631
|
+
|
|
632
|
+
_MTL_INLINE MTL::BindingAccess MTL::ArgumentDescriptor::access() const
|
|
633
|
+
{
|
|
634
|
+
return Object::sendMessage<MTL::BindingAccess>(this, _MTL_PRIVATE_SEL(access));
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
_MTL_INLINE MTL::ArgumentDescriptor* MTL::ArgumentDescriptor::alloc()
|
|
638
|
+
{
|
|
639
|
+
return NS::Object::alloc<MTL::ArgumentDescriptor>(_MTL_PRIVATE_CLS(MTLArgumentDescriptor));
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
_MTL_INLINE MTL::ArgumentDescriptor* MTL::ArgumentDescriptor::argumentDescriptor()
|
|
643
|
+
{
|
|
644
|
+
return Object::sendMessage<MTL::ArgumentDescriptor*>(_MTL_PRIVATE_CLS(MTLArgumentDescriptor), _MTL_PRIVATE_SEL(argumentDescriptor));
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
_MTL_INLINE NS::UInteger MTL::ArgumentDescriptor::arrayLength() const
|
|
648
|
+
{
|
|
649
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(arrayLength));
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
_MTL_INLINE NS::UInteger MTL::ArgumentDescriptor::constantBlockAlignment() const
|
|
653
|
+
{
|
|
654
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(constantBlockAlignment));
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
_MTL_INLINE MTL::DataType MTL::ArgumentDescriptor::dataType() const
|
|
658
|
+
{
|
|
659
|
+
return Object::sendMessage<MTL::DataType>(this, _MTL_PRIVATE_SEL(dataType));
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
_MTL_INLINE NS::UInteger MTL::ArgumentDescriptor::index() const
|
|
663
|
+
{
|
|
664
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(index));
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
_MTL_INLINE MTL::ArgumentDescriptor* MTL::ArgumentDescriptor::init()
|
|
668
|
+
{
|
|
669
|
+
return NS::Object::init<MTL::ArgumentDescriptor>();
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setAccess(MTL::BindingAccess access)
|
|
673
|
+
{
|
|
674
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setAccess_), access);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setArrayLength(NS::UInteger arrayLength)
|
|
678
|
+
{
|
|
679
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setArrayLength_), arrayLength);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setConstantBlockAlignment(NS::UInteger constantBlockAlignment)
|
|
683
|
+
{
|
|
684
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setConstantBlockAlignment_), constantBlockAlignment);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setDataType(MTL::DataType dataType)
|
|
688
|
+
{
|
|
689
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setDataType_), dataType);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setIndex(NS::UInteger index)
|
|
693
|
+
{
|
|
694
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setIndex_), index);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
_MTL_INLINE void MTL::ArgumentDescriptor::setTextureType(MTL::TextureType textureType)
|
|
698
|
+
{
|
|
699
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setTextureType_), textureType);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
_MTL_INLINE MTL::TextureType MTL::ArgumentDescriptor::textureType() const
|
|
703
|
+
{
|
|
704
|
+
return Object::sendMessage<MTL::TextureType>(this, _MTL_PRIVATE_SEL(textureType));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
_MTL_INLINE MTL::Architecture* MTL::Architecture::alloc()
|
|
708
|
+
{
|
|
709
|
+
return NS::Object::alloc<MTL::Architecture>(_MTL_PRIVATE_CLS(MTLArchitecture));
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
_MTL_INLINE MTL::Architecture* MTL::Architecture::init()
|
|
713
|
+
{
|
|
714
|
+
return NS::Object::init<MTL::Architecture>();
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
_MTL_INLINE NS::String* MTL::Architecture::name() const
|
|
718
|
+
{
|
|
719
|
+
return Object::sendMessage<NS::String*>(this, _MTL_PRIVATE_SEL(name));
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
_MTL_INLINE MTL::AccelerationStructureSizes MTL::Device::accelerationStructureSizes(const MTL::AccelerationStructureDescriptor* descriptor)
|
|
723
|
+
{
|
|
724
|
+
return Object::sendMessage<MTL::AccelerationStructureSizes>(this, _MTL_PRIVATE_SEL(accelerationStructureSizesWithDescriptor_), descriptor);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
_MTL_INLINE MTL::Architecture* MTL::Device::architecture() const
|
|
728
|
+
{
|
|
729
|
+
return Object::sendMessage<MTL::Architecture*>(this, _MTL_PRIVATE_SEL(architecture));
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
_MTL_INLINE bool MTL::Device::areBarycentricCoordsSupported() const
|
|
733
|
+
{
|
|
734
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areBarycentricCoordsSupported));
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
_MTL_INLINE bool MTL::Device::areProgrammableSamplePositionsSupported() const
|
|
738
|
+
{
|
|
739
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areProgrammableSamplePositionsSupported));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
_MTL_INLINE bool MTL::Device::areRasterOrderGroupsSupported() const
|
|
743
|
+
{
|
|
744
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areRasterOrderGroupsSupported));
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
_MTL_INLINE MTL::ArgumentBuffersTier MTL::Device::argumentBuffersSupport() const
|
|
748
|
+
{
|
|
749
|
+
return Object::sendMessage<MTL::ArgumentBuffersTier>(this, _MTL_PRIVATE_SEL(argumentBuffersSupport));
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
_MTL_INLINE bool MTL::Device::barycentricCoordsSupported() const
|
|
753
|
+
{
|
|
754
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areBarycentricCoordsSupported));
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
_MTL_INLINE void MTL::Device::convertSparsePixelRegions(const MTL::Region* pixelRegions, MTL::Region* tileRegions, MTL::Size tileSize, MTL::SparseTextureRegionAlignmentMode mode, NS::UInteger numRegions)
|
|
758
|
+
{
|
|
759
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(convertSparsePixelRegions_toTileRegions_withTileSize_alignmentMode_numRegions_), pixelRegions, tileRegions, tileSize, mode, numRegions);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
_MTL_INLINE void MTL::Device::convertSparseTileRegions(const MTL::Region* tileRegions, MTL::Region* pixelRegions, MTL::Size tileSize, NS::UInteger numRegions)
|
|
763
|
+
{
|
|
764
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(convertSparseTileRegions_toPixelRegions_withTileSize_numRegions_), tileRegions, pixelRegions, tileSize, numRegions);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
_MTL_INLINE NS::Array* MTL::Device::counterSets() const
|
|
768
|
+
{
|
|
769
|
+
return Object::sendMessage<NS::Array*>(this, _MTL_PRIVATE_SEL(counterSets));
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
_MTL_INLINE NS::UInteger MTL::Device::currentAllocatedSize() const
|
|
773
|
+
{
|
|
774
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(currentAllocatedSize));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
_MTL_INLINE bool MTL::Device::depth24Stencil8PixelFormatSupported() const
|
|
778
|
+
{
|
|
779
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(isDepth24Stencil8PixelFormatSupported));
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
_MTL_INLINE MTL::FunctionHandle* MTL::Device::functionHandle(const MTL::Function* function)
|
|
783
|
+
{
|
|
784
|
+
return Object::sendMessage<MTL::FunctionHandle*>(this, _MTL_PRIVATE_SEL(functionHandleWithFunction_), function);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
_MTL_INLINE MTL::FunctionHandle* MTL::Device::functionHandle(const MTL4::BinaryFunction* function)
|
|
788
|
+
{
|
|
789
|
+
return Object::sendMessage<MTL::FunctionHandle*>(this, _MTL_PRIVATE_SEL(functionHandleWithBinaryFunction_), function);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
_MTL_INLINE void MTL::Device::getDefaultSamplePositions(MTL::SamplePosition* positions, NS::UInteger count)
|
|
793
|
+
{
|
|
794
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(getDefaultSamplePositions_count_), positions, count);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
_MTL_INLINE bool MTL::Device::hasUnifiedMemory() const
|
|
798
|
+
{
|
|
799
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(hasUnifiedMemory));
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
_MTL_INLINE bool MTL::Device::headless() const
|
|
803
|
+
{
|
|
804
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isHeadless));
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
_MTL_INLINE MTL::SizeAndAlign MTL::Device::heapAccelerationStructureSizeAndAlign(NS::UInteger size)
|
|
808
|
+
{
|
|
809
|
+
return Object::sendMessage<MTL::SizeAndAlign>(this, _MTL_PRIVATE_SEL(heapAccelerationStructureSizeAndAlignWithSize_), size);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
_MTL_INLINE MTL::SizeAndAlign MTL::Device::heapAccelerationStructureSizeAndAlign(const MTL::AccelerationStructureDescriptor* descriptor)
|
|
813
|
+
{
|
|
814
|
+
return Object::sendMessage<MTL::SizeAndAlign>(this, _MTL_PRIVATE_SEL(heapAccelerationStructureSizeAndAlignWithDescriptor_), descriptor);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
_MTL_INLINE MTL::SizeAndAlign MTL::Device::heapBufferSizeAndAlign(NS::UInteger length, MTL::ResourceOptions options)
|
|
818
|
+
{
|
|
819
|
+
return Object::sendMessage<MTL::SizeAndAlign>(this, _MTL_PRIVATE_SEL(heapBufferSizeAndAlignWithLength_options_), length, options);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
_MTL_INLINE MTL::SizeAndAlign MTL::Device::heapTextureSizeAndAlign(const MTL::TextureDescriptor* desc)
|
|
823
|
+
{
|
|
824
|
+
return Object::sendMessage<MTL::SizeAndAlign>(this, _MTL_PRIVATE_SEL(heapTextureSizeAndAlignWithDescriptor_), desc);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
_MTL_INLINE bool MTL::Device::isDepth24Stencil8PixelFormatSupported() const
|
|
828
|
+
{
|
|
829
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(isDepth24Stencil8PixelFormatSupported));
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
_MTL_INLINE bool MTL::Device::isHeadless() const
|
|
833
|
+
{
|
|
834
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isHeadless));
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
_MTL_INLINE bool MTL::Device::isLowPower() const
|
|
838
|
+
{
|
|
839
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isLowPower));
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
_MTL_INLINE bool MTL::Device::isRemovable() const
|
|
843
|
+
{
|
|
844
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isRemovable));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
_MTL_INLINE MTL::DeviceLocation MTL::Device::location() const
|
|
848
|
+
{
|
|
849
|
+
return Object::sendMessage<MTL::DeviceLocation>(this, _MTL_PRIVATE_SEL(location));
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
_MTL_INLINE NS::UInteger MTL::Device::locationNumber() const
|
|
853
|
+
{
|
|
854
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(locationNumber));
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
_MTL_INLINE bool MTL::Device::lowPower() const
|
|
858
|
+
{
|
|
859
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isLowPower));
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
_MTL_INLINE NS::UInteger MTL::Device::maxArgumentBufferSamplerCount() const
|
|
863
|
+
{
|
|
864
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(maxArgumentBufferSamplerCount));
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
_MTL_INLINE NS::UInteger MTL::Device::maxBufferLength() const
|
|
868
|
+
{
|
|
869
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(maxBufferLength));
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
_MTL_INLINE NS::UInteger MTL::Device::maxThreadgroupMemoryLength() const
|
|
873
|
+
{
|
|
874
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(maxThreadgroupMemoryLength));
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
_MTL_INLINE MTL::Size MTL::Device::maxThreadsPerThreadgroup() const
|
|
878
|
+
{
|
|
879
|
+
return Object::sendMessage<MTL::Size>(this, _MTL_PRIVATE_SEL(maxThreadsPerThreadgroup));
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
_MTL_INLINE uint64_t MTL::Device::maxTransferRate() const
|
|
883
|
+
{
|
|
884
|
+
return Object::sendMessage<uint64_t>(this, _MTL_PRIVATE_SEL(maxTransferRate));
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
_MTL_INLINE NS::UInteger MTL::Device::maximumConcurrentCompilationTaskCount() const
|
|
888
|
+
{
|
|
889
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(maximumConcurrentCompilationTaskCount));
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
_MTL_INLINE NS::UInteger MTL::Device::minimumLinearTextureAlignmentForPixelFormat(MTL::PixelFormat format)
|
|
893
|
+
{
|
|
894
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(minimumLinearTextureAlignmentForPixelFormat_), format);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
_MTL_INLINE NS::UInteger MTL::Device::minimumTextureBufferAlignmentForPixelFormat(MTL::PixelFormat format)
|
|
898
|
+
{
|
|
899
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(minimumTextureBufferAlignmentForPixelFormat_), format);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
_MTL_INLINE NS::String* MTL::Device::name() const
|
|
903
|
+
{
|
|
904
|
+
return Object::sendMessage<NS::String*>(this, _MTL_PRIVATE_SEL(name));
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
_MTL_INLINE MTL::AccelerationStructure* MTL::Device::newAccelerationStructure(NS::UInteger size)
|
|
908
|
+
{
|
|
909
|
+
return Object::sendMessage<MTL::AccelerationStructure*>(this, _MTL_PRIVATE_SEL(newAccelerationStructureWithSize_), size);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
_MTL_INLINE MTL::AccelerationStructure* MTL::Device::newAccelerationStructure(const MTL::AccelerationStructureDescriptor* descriptor)
|
|
913
|
+
{
|
|
914
|
+
return Object::sendMessage<MTL::AccelerationStructure*>(this, _MTL_PRIVATE_SEL(newAccelerationStructureWithDescriptor_), descriptor);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
_MTL_INLINE MTL4::Archive* MTL::Device::newArchive(const NS::URL* url, NS::Error** error)
|
|
918
|
+
{
|
|
919
|
+
return Object::sendMessage<MTL4::Archive*>(this, _MTL_PRIVATE_SEL(newArchiveWithURL_error_), url, error);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
_MTL_INLINE MTL::ArgumentEncoder* MTL::Device::newArgumentEncoder(const NS::Array* arguments)
|
|
923
|
+
{
|
|
924
|
+
return Object::sendMessage<MTL::ArgumentEncoder*>(this, _MTL_PRIVATE_SEL(newArgumentEncoderWithArguments_), arguments);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
_MTL_INLINE MTL::ArgumentEncoder* MTL::Device::newArgumentEncoder(const MTL::BufferBinding* bufferBinding)
|
|
928
|
+
{
|
|
929
|
+
return Object::sendMessage<MTL::ArgumentEncoder*>(this, _MTL_PRIVATE_SEL(newArgumentEncoderWithBufferBinding_), bufferBinding);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
_MTL_INLINE MTL4::ArgumentTable* MTL::Device::newArgumentTable(const MTL4::ArgumentTableDescriptor* descriptor, NS::Error** error)
|
|
933
|
+
{
|
|
934
|
+
return Object::sendMessage<MTL4::ArgumentTable*>(this, _MTL_PRIVATE_SEL(newArgumentTableWithDescriptor_error_), descriptor, error);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
_MTL_INLINE MTL::BinaryArchive* MTL::Device::newBinaryArchive(const MTL::BinaryArchiveDescriptor* descriptor, NS::Error** error)
|
|
938
|
+
{
|
|
939
|
+
return Object::sendMessage<MTL::BinaryArchive*>(this, _MTL_PRIVATE_SEL(newBinaryArchiveWithDescriptor_error_), descriptor, error);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(NS::UInteger length, MTL::ResourceOptions options)
|
|
943
|
+
{
|
|
944
|
+
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithLength_options_), length, options);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options)
|
|
948
|
+
{
|
|
949
|
+
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithBytes_length_options_), pointer, length, options);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(const void* pointer, NS::UInteger length, MTL::ResourceOptions options, void (^deallocator)(void*, NS::UInteger))
|
|
953
|
+
{
|
|
954
|
+
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithBytesNoCopy_length_options_deallocator_), pointer, length, options, deallocator);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
_MTL_INLINE MTL::Buffer* MTL::Device::newBuffer(NS::UInteger length, MTL::ResourceOptions options, MTL::SparsePageSize placementSparsePageSize)
|
|
958
|
+
{
|
|
959
|
+
return Object::sendMessage<MTL::Buffer*>(this, _MTL_PRIVATE_SEL(newBufferWithLength_options_placementSparsePageSize_), length, options, placementSparsePageSize);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
_MTL_INLINE MTL4::CommandAllocator* MTL::Device::newCommandAllocator()
|
|
963
|
+
{
|
|
964
|
+
return Object::sendMessage<MTL4::CommandAllocator*>(this, _MTL_PRIVATE_SEL(newCommandAllocator));
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
_MTL_INLINE MTL4::CommandAllocator* MTL::Device::newCommandAllocator(const MTL4::CommandAllocatorDescriptor* descriptor, NS::Error** error)
|
|
968
|
+
{
|
|
969
|
+
return Object::sendMessage<MTL4::CommandAllocator*>(this, _MTL_PRIVATE_SEL(newCommandAllocatorWithDescriptor_error_), descriptor, error);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
_MTL_INLINE MTL4::CommandBuffer* MTL::Device::newCommandBuffer()
|
|
973
|
+
{
|
|
974
|
+
return Object::sendMessage<MTL4::CommandBuffer*>(this, _MTL_PRIVATE_SEL(newCommandBuffer));
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
_MTL_INLINE MTL::CommandQueue* MTL::Device::newCommandQueue()
|
|
978
|
+
{
|
|
979
|
+
return Object::sendMessage<MTL::CommandQueue*>(this, _MTL_PRIVATE_SEL(newCommandQueue));
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
_MTL_INLINE MTL::CommandQueue* MTL::Device::newCommandQueue(NS::UInteger maxCommandBufferCount)
|
|
983
|
+
{
|
|
984
|
+
return Object::sendMessage<MTL::CommandQueue*>(this, _MTL_PRIVATE_SEL(newCommandQueueWithMaxCommandBufferCount_), maxCommandBufferCount);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
_MTL_INLINE MTL::CommandQueue* MTL::Device::newCommandQueue(const MTL::CommandQueueDescriptor* descriptor)
|
|
988
|
+
{
|
|
989
|
+
return Object::sendMessage<MTL::CommandQueue*>(this, _MTL_PRIVATE_SEL(newCommandQueueWithDescriptor_), descriptor);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
_MTL_INLINE MTL4::Compiler* MTL::Device::newCompiler(const MTL4::CompilerDescriptor* descriptor, NS::Error** error)
|
|
993
|
+
{
|
|
994
|
+
return Object::sendMessage<MTL4::Compiler*>(this, _MTL_PRIVATE_SEL(newCompilerWithDescriptor_error_), descriptor, error);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
_MTL_INLINE MTL::ComputePipelineState* MTL::Device::newComputePipelineState(const MTL::Function* computeFunction, NS::Error** error)
|
|
998
|
+
{
|
|
999
|
+
return Object::sendMessage<MTL::ComputePipelineState*>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithFunction_error_), computeFunction, error);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
_MTL_INLINE MTL::ComputePipelineState* MTL::Device::newComputePipelineState(const MTL::Function* computeFunction, MTL::PipelineOption options, const MTL::AutoreleasedComputePipelineReflection* reflection, NS::Error** error)
|
|
1003
|
+
{
|
|
1004
|
+
return Object::sendMessage<MTL::ComputePipelineState*>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithFunction_options_reflection_error_), computeFunction, options, reflection, error);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::Function* computeFunction, const MTL::NewComputePipelineStateCompletionHandler completionHandler)
|
|
1008
|
+
{
|
|
1009
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithFunction_completionHandler_), computeFunction, completionHandler);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::Function* computeFunction, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandler completionHandler)
|
|
1013
|
+
{
|
|
1014
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithFunction_options_completionHandler_), computeFunction, options, completionHandler);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
_MTL_INLINE MTL::ComputePipelineState* MTL::Device::newComputePipelineState(const MTL::ComputePipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedComputePipelineReflection* reflection, NS::Error** error)
|
|
1018
|
+
{
|
|
1019
|
+
return Object::sendMessage<MTL::ComputePipelineState*>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithDescriptor_options_reflection_error_), descriptor, options, reflection, error);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::ComputePipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandler completionHandler)
|
|
1023
|
+
{
|
|
1024
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newComputePipelineStateWithDescriptor_options_completionHandler_), descriptor, options, completionHandler);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::Function* pFunction, const MTL::NewComputePipelineStateCompletionHandlerFunction& completionHandler)
|
|
1028
|
+
{
|
|
1029
|
+
__block MTL::NewComputePipelineStateCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1030
|
+
newComputePipelineState(pFunction, ^(MTL::ComputePipelineState* pPipelineState, NS::Error* pError) { blockCompletionHandler(pPipelineState, pError); });
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::Function* pFunction, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandlerFunction& completionHandler)
|
|
1034
|
+
{
|
|
1035
|
+
__block MTL::NewComputePipelineStateWithReflectionCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1036
|
+
newComputePipelineState(pFunction, options, ^(MTL::ComputePipelineState* pPipelineState, MTL::ComputePipelineReflection* pReflection, NS::Error* pError) { blockCompletionHandler(pPipelineState, pReflection, pError); });
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
_MTL_INLINE void MTL::Device::newComputePipelineState(const MTL::ComputePipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewComputePipelineStateWithReflectionCompletionHandlerFunction& completionHandler)
|
|
1040
|
+
{
|
|
1041
|
+
__block NewComputePipelineStateWithReflectionCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1042
|
+
newComputePipelineState(pDescriptor, options, ^(ComputePipelineState* pPipelineState, ComputePipelineReflection* pReflection, NS::Error* pError) { blockCompletionHandler(pPipelineState, pReflection, pError); });
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
_MTL_INLINE MTL4::CounterHeap* MTL::Device::newCounterHeap(const MTL4::CounterHeapDescriptor* descriptor, NS::Error** error)
|
|
1046
|
+
{
|
|
1047
|
+
return Object::sendMessage<MTL4::CounterHeap*>(this, _MTL_PRIVATE_SEL(newCounterHeapWithDescriptor_error_), descriptor, error);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
_MTL_INLINE MTL::CounterSampleBuffer* MTL::Device::newCounterSampleBuffer(const MTL::CounterSampleBufferDescriptor* descriptor, NS::Error** error)
|
|
1051
|
+
{
|
|
1052
|
+
return Object::sendMessage<MTL::CounterSampleBuffer*>(this, _MTL_PRIVATE_SEL(newCounterSampleBufferWithDescriptor_error_), descriptor, error);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
_MTL_INLINE MTL::Library* MTL::Device::newDefaultLibrary()
|
|
1056
|
+
{
|
|
1057
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newDefaultLibrary));
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
_MTL_INLINE MTL::Library* MTL::Device::newDefaultLibrary(const NS::Bundle* bundle, NS::Error** error)
|
|
1061
|
+
{
|
|
1062
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newDefaultLibraryWithBundle_error_), bundle, error);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
_MTL_INLINE MTL::DepthStencilState* MTL::Device::newDepthStencilState(const MTL::DepthStencilDescriptor* descriptor)
|
|
1066
|
+
{
|
|
1067
|
+
return Object::sendMessage<MTL::DepthStencilState*>(this, _MTL_PRIVATE_SEL(newDepthStencilStateWithDescriptor_), descriptor);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
_MTL_INLINE MTL::DynamicLibrary* MTL::Device::newDynamicLibrary(const MTL::Library* library, NS::Error** error)
|
|
1071
|
+
{
|
|
1072
|
+
return Object::sendMessage<MTL::DynamicLibrary*>(this, _MTL_PRIVATE_SEL(newDynamicLibrary_error_), library, error);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
_MTL_INLINE MTL::DynamicLibrary* MTL::Device::newDynamicLibrary(const NS::URL* url, NS::Error** error)
|
|
1076
|
+
{
|
|
1077
|
+
return Object::sendMessage<MTL::DynamicLibrary*>(this, _MTL_PRIVATE_SEL(newDynamicLibraryWithURL_error_), url, error);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
_MTL_INLINE MTL::Event* MTL::Device::newEvent()
|
|
1081
|
+
{
|
|
1082
|
+
return Object::sendMessage<MTL::Event*>(this, _MTL_PRIVATE_SEL(newEvent));
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
_MTL_INLINE MTL::Fence* MTL::Device::newFence()
|
|
1086
|
+
{
|
|
1087
|
+
return Object::sendMessage<MTL::Fence*>(this, _MTL_PRIVATE_SEL(newFence));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
_MTL_INLINE MTL::Heap* MTL::Device::newHeap(const MTL::HeapDescriptor* descriptor)
|
|
1091
|
+
{
|
|
1092
|
+
return Object::sendMessage<MTL::Heap*>(this, _MTL_PRIVATE_SEL(newHeapWithDescriptor_), descriptor);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
_MTL_INLINE MTL::IOCommandQueue* MTL::Device::newIOCommandQueue(const MTL::IOCommandQueueDescriptor* descriptor, NS::Error** error)
|
|
1096
|
+
{
|
|
1097
|
+
return Object::sendMessage<MTL::IOCommandQueue*>(this, _MTL_PRIVATE_SEL(newIOCommandQueueWithDescriptor_error_), descriptor, error);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
_MTL_INLINE MTL::IOFileHandle* MTL::Device::newIOFileHandle(const NS::URL* url, NS::Error** error)
|
|
1101
|
+
{
|
|
1102
|
+
return Object::sendMessage<MTL::IOFileHandle*>(this, _MTL_PRIVATE_SEL(newIOFileHandleWithURL_error_), url, error);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
_MTL_INLINE MTL::IOFileHandle* MTL::Device::newIOFileHandle(const NS::URL* url, MTL::IOCompressionMethod compressionMethod, NS::Error** error)
|
|
1106
|
+
{
|
|
1107
|
+
return Object::sendMessage<MTL::IOFileHandle*>(this, _MTL_PRIVATE_SEL(newIOFileHandleWithURL_compressionMethod_error_), url, compressionMethod, error);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
_MTL_INLINE MTL::IOFileHandle* MTL::Device::newIOHandle(const NS::URL* url, NS::Error** error)
|
|
1111
|
+
{
|
|
1112
|
+
return Object::sendMessage<MTL::IOFileHandle*>(this, _MTL_PRIVATE_SEL(newIOHandleWithURL_error_), url, error);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
_MTL_INLINE MTL::IOFileHandle* MTL::Device::newIOHandle(const NS::URL* url, MTL::IOCompressionMethod compressionMethod, NS::Error** error)
|
|
1116
|
+
{
|
|
1117
|
+
return Object::sendMessage<MTL::IOFileHandle*>(this, _MTL_PRIVATE_SEL(newIOHandleWithURL_compressionMethod_error_), url, compressionMethod, error);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
_MTL_INLINE MTL::IndirectCommandBuffer* MTL::Device::newIndirectCommandBuffer(const MTL::IndirectCommandBufferDescriptor* descriptor, NS::UInteger maxCount, MTL::ResourceOptions options)
|
|
1121
|
+
{
|
|
1122
|
+
return Object::sendMessage<MTL::IndirectCommandBuffer*>(this, _MTL_PRIVATE_SEL(newIndirectCommandBufferWithDescriptor_maxCommandCount_options_), descriptor, maxCount, options);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
_MTL_INLINE MTL::Library* MTL::Device::newLibrary(const NS::String* filepath, NS::Error** error)
|
|
1126
|
+
{
|
|
1127
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newLibraryWithFile_error_), filepath, error);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
_MTL_INLINE MTL::Library* MTL::Device::newLibrary(const NS::URL* url, NS::Error** error)
|
|
1131
|
+
{
|
|
1132
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newLibraryWithURL_error_), url, error);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
_MTL_INLINE MTL::Library* MTL::Device::newLibrary(const dispatch_data_t data, NS::Error** error)
|
|
1136
|
+
{
|
|
1137
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newLibraryWithData_error_), data, error);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
_MTL_INLINE MTL::Library* MTL::Device::newLibrary(const NS::String* source, const MTL::CompileOptions* options, NS::Error** error)
|
|
1141
|
+
{
|
|
1142
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newLibraryWithSource_options_error_), source, options, error);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
_MTL_INLINE void MTL::Device::newLibrary(const NS::String* source, const MTL::CompileOptions* options, const MTL::NewLibraryCompletionHandler completionHandler)
|
|
1146
|
+
{
|
|
1147
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newLibraryWithSource_options_completionHandler_), source, options, completionHandler);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
_MTL_INLINE MTL::Library* MTL::Device::newLibrary(const MTL::StitchedLibraryDescriptor* descriptor, NS::Error** error)
|
|
1151
|
+
{
|
|
1152
|
+
return Object::sendMessage<MTL::Library*>(this, _MTL_PRIVATE_SEL(newLibraryWithStitchedDescriptor_error_), descriptor, error);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
_MTL_INLINE void MTL::Device::newLibrary(const MTL::StitchedLibraryDescriptor* descriptor, const MTL::NewLibraryCompletionHandler completionHandler)
|
|
1156
|
+
{
|
|
1157
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newLibraryWithStitchedDescriptor_completionHandler_), descriptor, completionHandler);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
_MTL_INLINE void MTL::Device::newLibrary(const NS::String* pSource, const MTL::CompileOptions* pOptions, const MTL::NewLibraryCompletionHandlerFunction& completionHandler)
|
|
1161
|
+
{
|
|
1162
|
+
__block MTL::NewLibraryCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1163
|
+
newLibrary(pSource, pOptions, ^(MTL::Library* pLibrary, NS::Error* pError) { blockCompletionHandler(pLibrary, pError); });
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
_MTL_INLINE void MTL::Device::newLibrary(const MTL::StitchedLibraryDescriptor* pDescriptor, const MTL::NewLibraryCompletionHandlerFunction& completionHandler)
|
|
1167
|
+
{
|
|
1168
|
+
__block MTL::NewLibraryCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1169
|
+
newLibrary(pDescriptor, ^(MTL::Library* pLibrary, NS::Error* pError) { blockCompletionHandler(pLibrary, pError); });
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
_MTL_INLINE MTL::LogState* MTL::Device::newLogState(const MTL::LogStateDescriptor* descriptor, NS::Error** error)
|
|
1173
|
+
{
|
|
1174
|
+
return Object::sendMessage<MTL::LogState*>(this, _MTL_PRIVATE_SEL(newLogStateWithDescriptor_error_), descriptor, error);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
_MTL_INLINE MTL4::CommandQueue* MTL::Device::newMTL4CommandQueue()
|
|
1178
|
+
{
|
|
1179
|
+
return Object::sendMessage<MTL4::CommandQueue*>(this, _MTL_PRIVATE_SEL(newMTL4CommandQueue));
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
_MTL_INLINE MTL4::CommandQueue* MTL::Device::newMTL4CommandQueue(const MTL4::CommandQueueDescriptor* descriptor, NS::Error** error)
|
|
1183
|
+
{
|
|
1184
|
+
return Object::sendMessage<MTL4::CommandQueue*>(this, _MTL_PRIVATE_SEL(newMTL4CommandQueueWithDescriptor_error_), descriptor, error);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
_MTL_INLINE MTL4::PipelineDataSetSerializer* MTL::Device::newPipelineDataSetSerializer(const MTL4::PipelineDataSetSerializerDescriptor* descriptor)
|
|
1188
|
+
{
|
|
1189
|
+
return Object::sendMessage<MTL4::PipelineDataSetSerializer*>(this, _MTL_PRIVATE_SEL(newPipelineDataSetSerializerWithDescriptor_), descriptor);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
_MTL_INLINE MTL::RasterizationRateMap* MTL::Device::newRasterizationRateMap(const MTL::RasterizationRateMapDescriptor* descriptor)
|
|
1193
|
+
{
|
|
1194
|
+
return Object::sendMessage<MTL::RasterizationRateMap*>(this, _MTL_PRIVATE_SEL(newRasterizationRateMapWithDescriptor_), descriptor);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
_MTL_INLINE MTL::RenderPipelineState* MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, NS::Error** error)
|
|
1198
|
+
{
|
|
1199
|
+
return Object::sendMessage<MTL::RenderPipelineState*>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithDescriptor_error_), descriptor, error);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
_MTL_INLINE MTL::RenderPipelineState* MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error)
|
|
1203
|
+
{
|
|
1204
|
+
return Object::sendMessage<MTL::RenderPipelineState*>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithDescriptor_options_reflection_error_), descriptor, options, reflection, error);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, const MTL::NewRenderPipelineStateCompletionHandler completionHandler)
|
|
1208
|
+
{
|
|
1209
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithDescriptor_completionHandler_), descriptor, completionHandler);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler)
|
|
1213
|
+
{
|
|
1214
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithDescriptor_options_completionHandler_), descriptor, options, completionHandler);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
_MTL_INLINE MTL::RenderPipelineState* MTL::Device::newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error)
|
|
1218
|
+
{
|
|
1219
|
+
return Object::sendMessage<MTL::RenderPipelineState*>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithTileDescriptor_options_reflection_error_), descriptor, options, reflection, error);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler)
|
|
1223
|
+
{
|
|
1224
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithTileDescriptor_options_completionHandler_), descriptor, options, completionHandler);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
_MTL_INLINE MTL::RenderPipelineState* MTL::Device::newRenderPipelineState(const MTL::MeshRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::AutoreleasedRenderPipelineReflection* reflection, NS::Error** error)
|
|
1228
|
+
{
|
|
1229
|
+
return Object::sendMessage<MTL::RenderPipelineState*>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithMeshDescriptor_options_reflection_error_), descriptor, options, reflection, error);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::MeshRenderPipelineDescriptor* descriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandler completionHandler)
|
|
1233
|
+
{
|
|
1234
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(newRenderPipelineStateWithMeshDescriptor_options_completionHandler_), descriptor, options, completionHandler);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* pDescriptor, const MTL::NewRenderPipelineStateCompletionHandlerFunction& completionHandler)
|
|
1238
|
+
{
|
|
1239
|
+
__block MTL::NewRenderPipelineStateCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1240
|
+
newRenderPipelineState(pDescriptor, ^(MTL::RenderPipelineState* pPipelineState, NS::Error* pError) { blockCompletionHandler(pPipelineState, pError); });
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::RenderPipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction& completionHandler)
|
|
1244
|
+
{
|
|
1245
|
+
__block MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1246
|
+
newRenderPipelineState(pDescriptor, options, ^(MTL::RenderPipelineState* pPipelineState, MTL::RenderPipelineReflection* pReflection, NS::Error* pError) { blockCompletionHandler(pPipelineState, pReflection, pError); });
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
_MTL_INLINE void MTL::Device::newRenderPipelineState(const MTL::TileRenderPipelineDescriptor* pDescriptor, MTL::PipelineOption options, const MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction& completionHandler)
|
|
1250
|
+
{
|
|
1251
|
+
__block MTL::NewRenderPipelineStateWithReflectionCompletionHandlerFunction blockCompletionHandler = completionHandler;
|
|
1252
|
+
newRenderPipelineState(pDescriptor, options, ^(MTL::RenderPipelineState* pPipelineState, MTL::RenderPipelineReflection* pReflection, NS::Error* pError) { blockCompletionHandler(pPipelineState, pReflection, pError); });
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
_MTL_INLINE MTL::ResidencySet* MTL::Device::newResidencySet(const MTL::ResidencySetDescriptor* desc, NS::Error** error)
|
|
1256
|
+
{
|
|
1257
|
+
return Object::sendMessage<MTL::ResidencySet*>(this, _MTL_PRIVATE_SEL(newResidencySetWithDescriptor_error_), desc, error);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
_MTL_INLINE MTL::SamplerState* MTL::Device::newSamplerState(const MTL::SamplerDescriptor* descriptor)
|
|
1261
|
+
{
|
|
1262
|
+
return Object::sendMessage<MTL::SamplerState*>(this, _MTL_PRIVATE_SEL(newSamplerStateWithDescriptor_), descriptor);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
_MTL_INLINE MTL::SharedEvent* MTL::Device::newSharedEvent()
|
|
1266
|
+
{
|
|
1267
|
+
return Object::sendMessage<MTL::SharedEvent*>(this, _MTL_PRIVATE_SEL(newSharedEvent));
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
_MTL_INLINE MTL::SharedEvent* MTL::Device::newSharedEvent(const MTL::SharedEventHandle* sharedEventHandle)
|
|
1271
|
+
{
|
|
1272
|
+
return Object::sendMessage<MTL::SharedEvent*>(this, _MTL_PRIVATE_SEL(newSharedEventWithHandle_), sharedEventHandle);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
_MTL_INLINE MTL::Texture* MTL::Device::newSharedTexture(const MTL::TextureDescriptor* descriptor)
|
|
1276
|
+
{
|
|
1277
|
+
return Object::sendMessage<MTL::Texture*>(this, _MTL_PRIVATE_SEL(newSharedTextureWithDescriptor_), descriptor);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
_MTL_INLINE MTL::Texture* MTL::Device::newSharedTexture(const MTL::SharedTextureHandle* sharedHandle)
|
|
1281
|
+
{
|
|
1282
|
+
return Object::sendMessage<MTL::Texture*>(this, _MTL_PRIVATE_SEL(newSharedTextureWithHandle_), sharedHandle);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
_MTL_INLINE MTL::Tensor* MTL::Device::newTensor(const MTL::TensorDescriptor* descriptor, NS::Error** error)
|
|
1286
|
+
{
|
|
1287
|
+
return Object::sendMessage<MTL::Tensor*>(this, _MTL_PRIVATE_SEL(newTensorWithDescriptor_error_), descriptor, error);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
_MTL_INLINE MTL::Texture* MTL::Device::newTexture(const MTL::TextureDescriptor* descriptor)
|
|
1291
|
+
{
|
|
1292
|
+
return Object::sendMessage<MTL::Texture*>(this, _MTL_PRIVATE_SEL(newTextureWithDescriptor_), descriptor);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
_MTL_INLINE MTL::Texture* MTL::Device::newTexture(const MTL::TextureDescriptor* descriptor, const IOSurfaceRef iosurface, NS::UInteger plane)
|
|
1296
|
+
{
|
|
1297
|
+
return Object::sendMessage<MTL::Texture*>(this, _MTL_PRIVATE_SEL(newTextureWithDescriptor_iosurface_plane_), descriptor, iosurface, plane);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
_MTL_INLINE MTL::TextureViewPool* MTL::Device::newTextureViewPool(const MTL::ResourceViewPoolDescriptor* descriptor, NS::Error** error)
|
|
1301
|
+
{
|
|
1302
|
+
return Object::sendMessage<MTL::TextureViewPool*>(this, _MTL_PRIVATE_SEL(newTextureViewPoolWithDescriptor_error_), descriptor, error);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
_MTL_INLINE uint32_t MTL::Device::peerCount() const
|
|
1306
|
+
{
|
|
1307
|
+
return Object::sendMessage<uint32_t>(this, _MTL_PRIVATE_SEL(peerCount));
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
_MTL_INLINE uint64_t MTL::Device::peerGroupID() const
|
|
1311
|
+
{
|
|
1312
|
+
return Object::sendMessage<uint64_t>(this, _MTL_PRIVATE_SEL(peerGroupID));
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
_MTL_INLINE uint32_t MTL::Device::peerIndex() const
|
|
1316
|
+
{
|
|
1317
|
+
return Object::sendMessage<uint32_t>(this, _MTL_PRIVATE_SEL(peerIndex));
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
_MTL_INLINE bool MTL::Device::programmableSamplePositionsSupported() const
|
|
1321
|
+
{
|
|
1322
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areProgrammableSamplePositionsSupported));
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
_MTL_INLINE uint64_t MTL::Device::queryTimestampFrequency()
|
|
1326
|
+
{
|
|
1327
|
+
return Object::sendMessage<uint64_t>(this, _MTL_PRIVATE_SEL(queryTimestampFrequency));
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
_MTL_INLINE bool MTL::Device::rasterOrderGroupsSupported() const
|
|
1331
|
+
{
|
|
1332
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(areRasterOrderGroupsSupported));
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
_MTL_INLINE MTL::ReadWriteTextureTier MTL::Device::readWriteTextureSupport() const
|
|
1336
|
+
{
|
|
1337
|
+
return Object::sendMessage<MTL::ReadWriteTextureTier>(this, _MTL_PRIVATE_SEL(readWriteTextureSupport));
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
_MTL_INLINE uint64_t MTL::Device::recommendedMaxWorkingSetSize() const
|
|
1341
|
+
{
|
|
1342
|
+
return Object::sendMessage<uint64_t>(this, _MTL_PRIVATE_SEL(recommendedMaxWorkingSetSize));
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
_MTL_INLINE uint64_t MTL::Device::registryID() const
|
|
1346
|
+
{
|
|
1347
|
+
return Object::sendMessage<uint64_t>(this, _MTL_PRIVATE_SEL(registryID));
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
_MTL_INLINE bool MTL::Device::removable() const
|
|
1351
|
+
{
|
|
1352
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(isRemovable));
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
_MTL_INLINE void MTL::Device::sampleTimestamps(MTL::Timestamp* cpuTimestamp, MTL::Timestamp* gpuTimestamp)
|
|
1356
|
+
{
|
|
1357
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(sampleTimestamps_gpuTimestamp_), cpuTimestamp, gpuTimestamp);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
_MTL_INLINE void MTL::Device::setShouldMaximizeConcurrentCompilation(bool shouldMaximizeConcurrentCompilation)
|
|
1361
|
+
{
|
|
1362
|
+
Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setShouldMaximizeConcurrentCompilation_), shouldMaximizeConcurrentCompilation);
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
_MTL_INLINE bool MTL::Device::shouldMaximizeConcurrentCompilation() const
|
|
1366
|
+
{
|
|
1367
|
+
return Object::sendMessage<bool>(this, _MTL_PRIVATE_SEL(shouldMaximizeConcurrentCompilation));
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
_MTL_INLINE NS::UInteger MTL::Device::sizeOfCounterHeapEntry(MTL4::CounterHeapType type)
|
|
1371
|
+
{
|
|
1372
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(sizeOfCounterHeapEntry_), type);
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
_MTL_INLINE MTL::Size MTL::Device::sparseTileSize(MTL::TextureType textureType, MTL::PixelFormat pixelFormat, NS::UInteger sampleCount)
|
|
1376
|
+
{
|
|
1377
|
+
return Object::sendMessage<MTL::Size>(this, _MTL_PRIVATE_SEL(sparseTileSizeWithTextureType_pixelFormat_sampleCount_), textureType, pixelFormat, sampleCount);
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
_MTL_INLINE MTL::Size MTL::Device::sparseTileSize(MTL::TextureType textureType, MTL::PixelFormat pixelFormat, NS::UInteger sampleCount, MTL::SparsePageSize sparsePageSize)
|
|
1381
|
+
{
|
|
1382
|
+
return Object::sendMessage<MTL::Size>(this, _MTL_PRIVATE_SEL(sparseTileSizeWithTextureType_pixelFormat_sampleCount_sparsePageSize_), textureType, pixelFormat, sampleCount, sparsePageSize);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
_MTL_INLINE NS::UInteger MTL::Device::sparseTileSizeInBytes() const
|
|
1386
|
+
{
|
|
1387
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(sparseTileSizeInBytes));
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
_MTL_INLINE NS::UInteger MTL::Device::sparseTileSizeInBytes(MTL::SparsePageSize sparsePageSize)
|
|
1391
|
+
{
|
|
1392
|
+
return Object::sendMessage<NS::UInteger>(this, _MTL_PRIVATE_SEL(sparseTileSizeInBytesForSparsePageSize_), sparsePageSize);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
_MTL_INLINE bool MTL::Device::supports32BitFloatFiltering() const
|
|
1396
|
+
{
|
|
1397
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supports32BitFloatFiltering));
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
_MTL_INLINE bool MTL::Device::supports32BitMSAA() const
|
|
1401
|
+
{
|
|
1402
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supports32BitMSAA));
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
_MTL_INLINE bool MTL::Device::supportsBCTextureCompression() const
|
|
1406
|
+
{
|
|
1407
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsBCTextureCompression));
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
_MTL_INLINE bool MTL::Device::supportsCounterSampling(MTL::CounterSamplingPoint samplingPoint)
|
|
1411
|
+
{
|
|
1412
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsCounterSampling_), samplingPoint);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
_MTL_INLINE bool MTL::Device::supportsDynamicLibraries() const
|
|
1416
|
+
{
|
|
1417
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsDynamicLibraries));
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
_MTL_INLINE bool MTL::Device::supportsFamily(MTL::GPUFamily gpuFamily)
|
|
1421
|
+
{
|
|
1422
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsFamily_), gpuFamily);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
_MTL_INLINE bool MTL::Device::supportsFeatureSet(MTL::FeatureSet featureSet)
|
|
1426
|
+
{
|
|
1427
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsFeatureSet_), featureSet);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
_MTL_INLINE bool MTL::Device::supportsFunctionPointers() const
|
|
1431
|
+
{
|
|
1432
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsFunctionPointers));
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
_MTL_INLINE bool MTL::Device::supportsFunctionPointersFromRender() const
|
|
1436
|
+
{
|
|
1437
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsFunctionPointersFromRender));
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
_MTL_INLINE bool MTL::Device::supportsPrimitiveMotionBlur() const
|
|
1441
|
+
{
|
|
1442
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsPrimitiveMotionBlur));
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
_MTL_INLINE bool MTL::Device::supportsPullModelInterpolation() const
|
|
1446
|
+
{
|
|
1447
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsPullModelInterpolation));
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
_MTL_INLINE bool MTL::Device::supportsQueryTextureLOD() const
|
|
1451
|
+
{
|
|
1452
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsQueryTextureLOD));
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
_MTL_INLINE bool MTL::Device::supportsRasterizationRateMap(NS::UInteger layerCount)
|
|
1456
|
+
{
|
|
1457
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsRasterizationRateMapWithLayerCount_), layerCount);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
_MTL_INLINE bool MTL::Device::supportsRaytracing() const
|
|
1461
|
+
{
|
|
1462
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsRaytracing));
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
_MTL_INLINE bool MTL::Device::supportsRaytracingFromRender() const
|
|
1466
|
+
{
|
|
1467
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsRaytracingFromRender));
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
_MTL_INLINE bool MTL::Device::supportsRenderDynamicLibraries() const
|
|
1471
|
+
{
|
|
1472
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsRenderDynamicLibraries));
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
_MTL_INLINE bool MTL::Device::supportsShaderBarycentricCoordinates() const
|
|
1476
|
+
{
|
|
1477
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsShaderBarycentricCoordinates));
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
_MTL_INLINE bool MTL::Device::supportsTextureSampleCount(NS::UInteger sampleCount)
|
|
1481
|
+
{
|
|
1482
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsTextureSampleCount_), sampleCount);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
_MTL_INLINE bool MTL::Device::supportsVertexAmplificationCount(NS::UInteger count)
|
|
1486
|
+
{
|
|
1487
|
+
return Object::sendMessageSafe<bool>(this, _MTL_PRIVATE_SEL(supportsVertexAmplificationCount_), count);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
_MTL_INLINE MTL::SizeAndAlign MTL::Device::tensorSizeAndAlign(const MTL::TensorDescriptor* descriptor)
|
|
1491
|
+
{
|
|
1492
|
+
return Object::sendMessage<MTL::SizeAndAlign>(this, _MTL_PRIVATE_SEL(tensorSizeAndAlignWithDescriptor_), descriptor);
|
|
1493
|
+
}
|