@nativescript/canvas 2.0.0-alpha.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +213 -25
- package/Canvas/common.js +705 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +10 -1
- package/Canvas/index.android.js +155 -52
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +8 -0
- package/Canvas/index.ios.d.ts +7 -4
- package/Canvas/index.ios.js +159 -106
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +11 -5
- package/Canvas2D/CanvasRenderingContext2D/index.js +183 -245
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +5 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +32 -42
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Dom.js +7 -2
- package/Dom/Dom.js.map +1 -1
- package/Dom/Group.d.ts +7 -7
- package/Dom/Group.js +47 -21
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.js +2 -3
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +1 -0
- package/Dom/Paint.js +10 -5
- package/Dom/Paint.js.map +1 -1
- package/Dom/Text.js +3 -4
- package/Dom/Text.js.map +1 -1
- package/Dom/shapes/Circle.js +2 -3
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Path.js +1 -0
- package/Dom/shapes/Path.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/Dom/shapes/Rect.js +2 -2
- package/Dom/shapes/Rect.js.map +1 -1
- package/Dom/shapes/RoundedRect.js +8 -9
- package/Dom/shapes/RoundedRect.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -33
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
- package/WebGL/WebGLRenderingContext/common.js +3 -13
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
- package/WebGL/WebGLRenderingContext/index.js +354 -728
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +116 -285
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +132 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +264 -136
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +5 -2
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +190 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +336 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
- package/platforms/ios/src/cpp/JSICallback.h +83 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/ObjectWrapperImpl.h +33 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
- package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
- package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +121 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2837 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1334 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -12
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +110 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +38 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/{pods → src-native/ios}/NativeScript.podspec +12 -25
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4543
- package/pods/Headers/jsi/decorator.h +0 -770
- package/pods/Headers/jsi/instrumentation.h +0 -117
- package/pods/Headers/jsi/jsi-inl.h +0 -338
- package/pods/Headers/jsi/jsi.h +0 -1571
- package/pods/Headers/jsi/jsilib.h +0 -59
- package/pods/Headers/jsi/threadsafe.h +0 -79
- package/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
- package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/pods/Headers/v8runtime/V8Runtime.h +0 -240
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
- /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp}
RENAMED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
#include "WebGLRenderingContextBase.h"
|
|
6
6
|
|
|
7
|
-
WebGLRenderingContextBase::WebGLRenderingContextBase(
|
|
7
|
+
WebGLRenderingContextBase::WebGLRenderingContextBase(WebGLState* state,
|
|
8
8
|
WebGLRenderingVersion version)
|
|
9
|
-
: state_(
|
|
9
|
+
: state_(state), version_(version) {
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
auto ctx_ptr = reinterpret_cast<intptr_t>(reinterpret_cast<intptr_t *>(this));
|
|
@@ -14,14 +14,11 @@ WebGLRenderingContextBase::WebGLRenderingContextBase(rust::Box<WebGLState> state
|
|
|
14
14
|
ctx_ptr,
|
|
15
15
|
version == WebGLRenderingVersion::V2 ? 2 : 1);
|
|
16
16
|
auto raf_callback_ptr = reinterpret_cast<intptr_t>(reinterpret_cast<intptr_t *>(raf_callback));
|
|
17
|
-
auto raf = canvas_native_raf_create(
|
|
18
|
-
raf_callback_ptr);
|
|
17
|
+
auto raf = canvas_native_raf_create(raf_callback_ptr, OnRafCallbackOnFrame);
|
|
19
18
|
this->SetRaf(
|
|
20
19
|
std::make_shared<RafImpl>(
|
|
21
20
|
raf_callback,
|
|
22
|
-
raf_callback_ptr,
|
|
23
|
-
std::move(
|
|
24
|
-
raf)));
|
|
21
|
+
raf_callback_ptr, raf));
|
|
25
22
|
|
|
26
23
|
auto _raf = this->GetRaf();
|
|
27
24
|
|
|
@@ -29,7 +26,6 @@ WebGLRenderingContextBase::WebGLRenderingContextBase(rust::Box<WebGLState> state
|
|
|
29
26
|
canvas_native_raf_start(_raf->GetRaf());
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
UpdateBindings();
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
|
|
@@ -52,6 +48,7 @@ void WebGLRenderingContextBase::StopRaf() {
|
|
|
52
48
|
}
|
|
53
49
|
}
|
|
54
50
|
|
|
51
|
+
|
|
55
52
|
void WebGLRenderingContextBase::UpdateInvalidateState() {
|
|
56
53
|
auto raf = this->GetRaf();
|
|
57
54
|
if (raf != nullptr) {
|
|
@@ -60,16 +57,16 @@ void WebGLRenderingContextBase::UpdateInvalidateState() {
|
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
auto state = this->GetInvalidateState();
|
|
63
|
-
this->SetInvalidateState(state | (int) InvalidateState::
|
|
60
|
+
this->SetInvalidateState(state | (int) InvalidateState::InvalidateStatePending);
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
void WebGLRenderingContextBase::Flush() {
|
|
67
|
-
auto state = this->GetInvalidateState() & (int) InvalidateState::
|
|
68
|
-
if (state == (int) InvalidateState::
|
|
69
|
-
this->SetInvalidateState((int) InvalidateState::
|
|
64
|
+
auto state = this->GetInvalidateState() & (int) InvalidateState::InvalidateStatePending;
|
|
65
|
+
if (state == (int) InvalidateState::InvalidateStatePending) {
|
|
66
|
+
this->SetInvalidateState((int) InvalidateState::InvalidateStateInvalidating);
|
|
70
67
|
canvas_native_webgl_make_current(this->GetState());
|
|
71
68
|
canvas_native_webgl_swap_buffers(this->GetState());
|
|
72
|
-
this->SetInvalidateState((int) InvalidateState::
|
|
69
|
+
this->SetInvalidateState((int) InvalidateState::InvalidateStateNone);
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
@@ -80,8 +77,8 @@ void WebGLRenderingContextBase::Flush(intptr_t context) {
|
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
|
|
83
|
-
WebGLState
|
|
84
|
-
return
|
|
80
|
+
WebGLState* WebGLRenderingContextBase::GetState() {
|
|
81
|
+
return this->state_;
|
|
85
82
|
}
|
|
86
83
|
|
|
87
84
|
void WebGLRenderingContextBase::SetRaf(std::shared_ptr<RafImpl> raf) {
|
|
@@ -112,7 +109,11 @@ WebGLRenderingVersion WebGLRenderingContextBase::GetVersion() const {
|
|
|
112
109
|
WebGLRenderingContextBase::~WebGLRenderingContextBase() {
|
|
113
110
|
auto _raf = this->GetRaf();
|
|
114
111
|
if (_raf != nullptr) {
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
canvas_native_raf_stop(
|
|
113
|
+
_raf->GetRaf());
|
|
117
114
|
}
|
|
115
|
+
canvas_native_raf_destroy(_raf->GetRaf());
|
|
116
|
+
this->raf_ = nullptr;
|
|
117
|
+
canvas_native_webgl_state_destroy(this->GetState());
|
|
118
|
+
this->state_ = nullptr;
|
|
118
119
|
}
|
|
@@ -5,29 +5,32 @@
|
|
|
5
5
|
#pragma once
|
|
6
6
|
#pragma process_pending_includes
|
|
7
7
|
|
|
8
|
-
#import "NativeScript/JSIRuntime.h"
|
|
9
|
-
#include "rust/cxx.h"
|
|
10
8
|
#include <vector>
|
|
11
9
|
#include <cstdint>
|
|
12
10
|
#include <memory>
|
|
13
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
14
11
|
|
|
15
12
|
#include "Helpers.h"
|
|
16
13
|
#include "RafImpl.h"
|
|
17
14
|
#include "OnRafCallback.h"
|
|
18
|
-
#include "
|
|
15
|
+
#include "Common.h"
|
|
16
|
+
#include "ObjectWrapperImpl.h"
|
|
19
17
|
|
|
20
18
|
enum class WebGLRenderingVersion : uint8_t {
|
|
21
19
|
V1,
|
|
22
20
|
V2
|
|
23
21
|
};
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
using namespace org::nativescript::canvas;
|
|
27
|
-
|
|
28
|
-
class WebGLRenderingContextBase : public jsi::HostObject {
|
|
23
|
+
class WebGLRenderingContextBase: public ObjectWrapperImpl {
|
|
29
24
|
public:
|
|
30
|
-
WebGLRenderingContextBase(
|
|
25
|
+
WebGLRenderingContextBase(WebGLState* state, WebGLRenderingVersion version);
|
|
26
|
+
|
|
27
|
+
static WebGLRenderingContextBase *GetPointer(const v8::Local<v8::Object> &object) {
|
|
28
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
29
|
+
if (ptr == nullptr) {
|
|
30
|
+
return nullptr;
|
|
31
|
+
}
|
|
32
|
+
return static_cast<WebGLRenderingContextBase *>(ptr);
|
|
33
|
+
}
|
|
31
34
|
|
|
32
35
|
~WebGLRenderingContextBase();
|
|
33
36
|
|
|
@@ -43,48 +46,25 @@ public:
|
|
|
43
46
|
|
|
44
47
|
static void Flush(intptr_t context);
|
|
45
48
|
|
|
46
|
-
WebGLState
|
|
49
|
+
WebGLState* GetState();
|
|
47
50
|
|
|
48
51
|
void SetRaf(std::shared_ptr<RafImpl> raf);
|
|
49
52
|
|
|
50
53
|
RafImpl *GetRaf();
|
|
51
54
|
|
|
52
55
|
WebGLRenderingVersion GetVersion() const;
|
|
53
|
-
|
|
54
|
-
int GetDisplayFramebuffer(){
|
|
55
|
-
return displayFramebuffer_;
|
|
56
|
-
}
|
|
57
56
|
|
|
58
|
-
int GetDisplayRenderbuffer(){
|
|
59
|
-
return displayRenderbuffer_;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
57
|
void StartRaf();
|
|
58
|
+
|
|
63
59
|
void StopRaf();
|
|
64
|
-
|
|
65
|
-
void UpdateBindings(){
|
|
66
|
-
auto displayFramebuffer = canvas_native_webgl_get_parameter(GL_FRAMEBUFFER_BINDING, *state_);
|
|
67
|
-
|
|
68
|
-
auto displayRenderbuffer = canvas_native_webgl_get_parameter(GL_RENDERER, *state_);
|
|
69
|
-
|
|
70
|
-
if(!canvas_native_webgl_result_get_is_none(*displayFramebuffer)){
|
|
71
|
-
displayFramebuffer_ = canvas_native_webgl_result_get_i32(*displayFramebuffer);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if(!canvas_native_webgl_result_get_is_none(*displayRenderbuffer)){
|
|
75
|
-
displayRenderbuffer_ = canvas_native_webgl_result_get_i32(*displayRenderbuffer);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
60
|
|
|
79
61
|
private:
|
|
80
|
-
|
|
62
|
+
WebGLState* state_;
|
|
81
63
|
|
|
82
64
|
WebGLRenderingVersion version_;
|
|
83
65
|
|
|
84
|
-
int invalidateState_ = static_cast<int>(InvalidateState::
|
|
66
|
+
int invalidateState_ = static_cast<int>(InvalidateState::InvalidateStateNone);
|
|
85
67
|
|
|
86
68
|
std::shared_ptr<RafImpl> raf_;
|
|
87
|
-
int displayFramebuffer_;
|
|
88
|
-
int displayRenderbuffer_;
|
|
89
69
|
};
|
|
90
70
|
|
|
@@ -4,16 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "
|
|
8
|
-
#include "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
using namespace facebook;
|
|
12
|
-
|
|
13
|
-
class JSI_EXPORT WebGLShader : public jsi::HostObject {
|
|
7
|
+
#include "Helpers.h"
|
|
8
|
+
#include "ObjectWrapperImpl.h"
|
|
9
|
+
class WebGLShader: ObjectWrapperImpl {
|
|
14
10
|
public:
|
|
15
11
|
WebGLShader(uint32_t shader) : shader_(shader) {}
|
|
16
12
|
|
|
13
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
14
|
+
auto cache = Caches::Get(isolate);
|
|
15
|
+
auto ctor = cache->WebGLShaderTmpl.get();
|
|
16
|
+
if (ctor != nullptr) {
|
|
17
|
+
return ctor->Get(isolate);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
21
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
22
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WebGLShader"));
|
|
23
|
+
|
|
24
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
25
|
+
tmpl->SetInternalFieldCount(2);
|
|
26
|
+
|
|
27
|
+
cache->WebGLShaderTmpl =
|
|
28
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
29
|
+
return ctorTmpl;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static v8::Local<v8::Object> NewInstance(v8::Isolate *isolate, WebGLShader *shader) {
|
|
33
|
+
auto context = isolate->GetCurrentContext();
|
|
34
|
+
v8::EscapableHandleScope scope(isolate);
|
|
35
|
+
auto object = WebGLShader::GetCtor(isolate)->GetFunction(
|
|
36
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
37
|
+
SetNativeType( object, NativeType::WebGLShader);
|
|
38
|
+
object->SetAlignedPointerInInternalField(0, shader);
|
|
39
|
+
shader->BindFinalizer(isolate, object);
|
|
40
|
+
return scope.Escape(object);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static WebGLShader *GetPointer(const v8::Local<v8::Object> &object) {
|
|
44
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
45
|
+
if (ptr == nullptr) {
|
|
46
|
+
return nullptr;
|
|
47
|
+
}
|
|
48
|
+
return static_cast<WebGLShader *>(ptr);
|
|
49
|
+
}
|
|
50
|
+
|
|
17
51
|
uint32_t GetShader() {
|
|
18
52
|
return this->shader_;
|
|
19
53
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "WebGLShaderPrecisionFormatImpl.h"
|
|
6
|
+
|
|
7
|
+
WebGLShaderPrecisionFormatImpl::WebGLShaderPrecisionFormatImpl(
|
|
8
|
+
WebGLShaderPrecisionFormat* shader) : shader_(shader) {}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
void WebGLShaderPrecisionFormatImpl::GetRangeMin(v8::Local<v8::Name> property,
|
|
12
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
13
|
+
WebGLShaderPrecisionFormatImpl *ptr = GetPointer(info.This());
|
|
14
|
+
if (ptr == nullptr) {
|
|
15
|
+
info.GetReturnValue().Set(0);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
info.GetReturnValue().Set((double) canvas_native_webgl_shader_precision_format_get_range_min(
|
|
20
|
+
ptr->GetShaderPrecisionFormat()));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
void WebGLShaderPrecisionFormatImpl::GetRangeMax(v8::Local<v8::Name> property,
|
|
24
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
25
|
+
WebGLShaderPrecisionFormatImpl *ptr = GetPointer(info.This());
|
|
26
|
+
if (ptr == nullptr) {
|
|
27
|
+
info.GetReturnValue().Set(0);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
info.GetReturnValue().Set((double) canvas_native_webgl_shader_precision_format_get_range_max(
|
|
32
|
+
ptr->GetShaderPrecisionFormat()));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
void WebGLShaderPrecisionFormatImpl::GetPrecision(v8::Local<v8::Name> property,
|
|
37
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
38
|
+
WebGLShaderPrecisionFormatImpl *ptr = GetPointer(info.This());
|
|
39
|
+
if (ptr == nullptr) {
|
|
40
|
+
info.GetReturnValue().Set(0);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
info.GetReturnValue().Set((double) canvas_native_webgl_shader_precision_format_get_precision(
|
|
45
|
+
ptr->GetShaderPrecisionFormat()));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
WebGLShaderPrecisionFormat* WebGLShaderPrecisionFormatImpl::GetShaderPrecisionFormat() {
|
|
49
|
+
return this->shader_;
|
|
50
|
+
}
|
|
@@ -4,25 +4,80 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
-
#import "NativeScript/JSIRuntime.h"
|
|
10
7
|
#include <vector>
|
|
8
|
+
#include "Helpers.h"
|
|
9
|
+
#include "Caches.h"
|
|
10
|
+
#include "Common.h"
|
|
11
|
+
#include "ObjectWrapperImpl.h"
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
using namespace org::nativescript::canvas;
|
|
14
|
-
|
|
15
|
-
class WebGLShaderPrecisionFormatImpl : public jsi::HostObject {
|
|
13
|
+
class WebGLShaderPrecisionFormatImpl: ObjectWrapperImpl {
|
|
16
14
|
public:
|
|
17
|
-
WebGLShaderPrecisionFormatImpl(
|
|
15
|
+
WebGLShaderPrecisionFormatImpl(WebGLShaderPrecisionFormat* shader);
|
|
16
|
+
|
|
17
|
+
~WebGLShaderPrecisionFormatImpl() {
|
|
18
|
+
canvas_native_webgl_shader_precision_format_destroy(this->GetShaderPrecisionFormat());
|
|
19
|
+
this->shader_ = nullptr;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
23
|
+
auto cache = Caches::Get(isolate);
|
|
24
|
+
auto ctor = cache->WebGLShaderPrecisionFormatTmpl.get();
|
|
25
|
+
if (ctor != nullptr) {
|
|
26
|
+
return ctor->Get(isolate);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
30
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
31
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WebGLShaderPrecisionFormat"));
|
|
32
|
+
|
|
33
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
34
|
+
tmpl->SetInternalFieldCount(2);
|
|
35
|
+
|
|
36
|
+
tmpl->SetLazyDataProperty(ConvertToV8String(isolate, "rangeMin"), GetRangeMin);
|
|
37
|
+
tmpl->SetLazyDataProperty(ConvertToV8String(isolate, "rangeMax"), GetRangeMax);
|
|
38
|
+
tmpl->SetLazyDataProperty(ConvertToV8String(isolate, "precision"), GetPrecision);
|
|
39
|
+
|
|
40
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
41
|
+
ConvertToV8String(isolate, "WebGLShaderPrecisionFormat"));
|
|
42
|
+
|
|
43
|
+
cache->WebGLShaderPrecisionFormatTmpl =
|
|
44
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
45
|
+
return ctorTmpl;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static v8::Local<v8::Object>
|
|
49
|
+
NewInstance(v8::Isolate *isolate, WebGLShaderPrecisionFormatImpl *shaderPrecisionFormat) {
|
|
50
|
+
auto context = isolate->GetCurrentContext();
|
|
51
|
+
v8::EscapableHandleScope scope(isolate);
|
|
52
|
+
auto object = WebGLShaderPrecisionFormatImpl::GetCtor(isolate)->GetFunction(
|
|
53
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
54
|
+
SetNativeType( object, NativeType::WebGLShaderPrecisionFormat);
|
|
55
|
+
object->SetAlignedPointerInInternalField(0, shaderPrecisionFormat);
|
|
56
|
+
shaderPrecisionFormat->BindFinalizer(isolate, object);
|
|
57
|
+
return scope.Escape(object);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static WebGLShaderPrecisionFormatImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
61
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
62
|
+
if (ptr == nullptr) {
|
|
63
|
+
return nullptr;
|
|
64
|
+
}
|
|
65
|
+
return static_cast<WebGLShaderPrecisionFormatImpl *>(ptr);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
static void GetRangeMin(v8::Local<v8::Name> property,
|
|
70
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
18
71
|
|
|
19
|
-
|
|
72
|
+
static void GetRangeMax(v8::Local<v8::Name> property,
|
|
73
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
20
74
|
|
|
21
|
-
|
|
75
|
+
static void GetPrecision(v8::Local<v8::Name> property,
|
|
76
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
22
77
|
|
|
23
|
-
WebGLShaderPrecisionFormat
|
|
78
|
+
WebGLShaderPrecisionFormat* GetShaderPrecisionFormat();
|
|
24
79
|
|
|
25
80
|
private:
|
|
26
|
-
|
|
81
|
+
WebGLShaderPrecisionFormat* shader_;
|
|
27
82
|
};
|
|
28
83
|
|
|
@@ -4,16 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "
|
|
8
|
-
#include "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
using namespace facebook;
|
|
12
|
-
|
|
13
|
-
class JSI_EXPORT WebGLTexture : public jsi::HostObject {
|
|
7
|
+
#include "Helpers.h"
|
|
8
|
+
#include "ObjectWrapperImpl.h"
|
|
9
|
+
class WebGLTexture: ObjectWrapperImpl {
|
|
14
10
|
public:
|
|
15
11
|
WebGLTexture(uint32_t texture) : texture_(texture) {}
|
|
16
12
|
|
|
13
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
14
|
+
auto cache = Caches::Get(isolate);
|
|
15
|
+
auto ctor = cache->WebGLTextureTmpl.get();
|
|
16
|
+
if (ctor != nullptr) {
|
|
17
|
+
return ctor->Get(isolate);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
21
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
22
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WebGLTexture"));
|
|
23
|
+
|
|
24
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
25
|
+
tmpl->SetInternalFieldCount(2);
|
|
26
|
+
|
|
27
|
+
cache->WebGLTextureTmpl =
|
|
28
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
29
|
+
return ctorTmpl;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static v8::Local<v8::Object> NewInstance(v8::Isolate *isolate, WebGLTexture *texture) {
|
|
33
|
+
auto context = isolate->GetCurrentContext();
|
|
34
|
+
v8::EscapableHandleScope scope(isolate);
|
|
35
|
+
auto object = WebGLTexture::GetCtor(isolate)->GetFunction(
|
|
36
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
37
|
+
SetNativeType( object, NativeType::WebGLTexture);
|
|
38
|
+
object->SetAlignedPointerInInternalField(0, texture);
|
|
39
|
+
texture->BindFinalizer(isolate, object);
|
|
40
|
+
return scope.Escape(object);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static WebGLTexture *GetPointer(const v8::Local<v8::Object> &object) {
|
|
44
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
45
|
+
if (ptr == nullptr) {
|
|
46
|
+
return nullptr;
|
|
47
|
+
}
|
|
48
|
+
return static_cast<WebGLTexture *>(ptr);
|
|
49
|
+
}
|
|
50
|
+
|
|
17
51
|
uint32_t GetTexture() {
|
|
18
52
|
return this->texture_;
|
|
19
53
|
}
|
|
@@ -4,21 +4,57 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "
|
|
8
|
-
#include "
|
|
9
|
-
#
|
|
7
|
+
#include "Helpers.h"
|
|
8
|
+
#include "Common.h"
|
|
9
|
+
#include "Caches.h"
|
|
10
|
+
#include "ObjectWrapperImpl.h"
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class JSI_EXPORT WebGLUniformLocation
|
|
15
|
-
|
|
16
|
-
: public jsi::HostObject {
|
|
12
|
+
class WebGLUniformLocation: ObjectWrapperImpl {
|
|
17
13
|
public:
|
|
18
14
|
WebGLUniformLocation(int32_t
|
|
19
15
|
uniformLocation) :
|
|
20
16
|
uniformLocation_(uniformLocation) {}
|
|
21
17
|
|
|
18
|
+
|
|
19
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
20
|
+
auto cache = Caches::Get(isolate);
|
|
21
|
+
auto ctor = cache->WebGLUniformLocationTmpl.get();
|
|
22
|
+
if (ctor != nullptr) {
|
|
23
|
+
return ctor->Get(isolate);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
27
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
28
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WebGLUniformLocation"));
|
|
29
|
+
|
|
30
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
31
|
+
tmpl->SetInternalFieldCount(2);
|
|
32
|
+
|
|
33
|
+
cache->WebGLUniformLocationTmpl =
|
|
34
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
35
|
+
return ctorTmpl;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static v8::Local<v8::Object>
|
|
39
|
+
NewInstance(v8::Isolate *isolate, WebGLUniformLocation *uniformLocation) {
|
|
40
|
+
auto context = isolate->GetCurrentContext();
|
|
41
|
+
v8::EscapableHandleScope scope(isolate);
|
|
42
|
+
auto object = WebGLUniformLocation::GetCtor(isolate)->GetFunction(
|
|
43
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
44
|
+
SetNativeType( object, NativeType::WebGLUniformLocation);
|
|
45
|
+
object->SetAlignedPointerInInternalField(0, uniformLocation);
|
|
46
|
+
uniformLocation->BindFinalizer(isolate, object);
|
|
47
|
+
return scope.Escape(object);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static WebGLUniformLocation *GetPointer(const v8::Local<v8::Object> &object) {
|
|
51
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
52
|
+
if (ptr == nullptr) {
|
|
53
|
+
return nullptr;
|
|
54
|
+
}
|
|
55
|
+
return static_cast<WebGLUniformLocation *>(ptr);
|
|
56
|
+
}
|
|
57
|
+
|
|
22
58
|
int32_t GetUniformLocation() {
|
|
23
59
|
return this->uniformLocation_;
|
|
24
60
|
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 29/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "ANGLE_instanced_arraysImpl.h"
|
|
6
|
+
#include "Caches.h"
|
|
7
|
+
|
|
8
|
+
ANGLE_instanced_arraysImpl::ANGLE_instanced_arraysImpl(ANGLE_instanced_arrays *arrays)
|
|
9
|
+
: arrays_(arrays) {}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
v8::CFunction ANGLE_instanced_arraysImpl::fast_draw_arrays_instanced_angle_(
|
|
13
|
+
v8::CFunction::Make(ANGLE_instanced_arraysImpl::FastDrawArraysInstancedANGLE));
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
v8::CFunction ANGLE_instanced_arraysImpl::fast_draw_elements_instanced_angle_(
|
|
17
|
+
v8::CFunction::Make(ANGLE_instanced_arraysImpl::FastDrawElementsInstancedANGLE));
|
|
18
|
+
|
|
19
|
+
v8::CFunction ANGLE_instanced_arraysImpl::fast_vertex_attrib_divisor_angle_(
|
|
20
|
+
v8::CFunction::Make(ANGLE_instanced_arraysImpl::FastVertexAttribDivisorANGLE));
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
ANGLE_instanced_arraysImpl *
|
|
24
|
+
ANGLE_instanced_arraysImpl::GetPointer(const v8::Local<v8::Object> &object) {
|
|
25
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
26
|
+
if (ptr == nullptr) {
|
|
27
|
+
return nullptr;
|
|
28
|
+
}
|
|
29
|
+
return static_cast<ANGLE_instanced_arraysImpl *>(ptr);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
void ANGLE_instanced_arraysImpl::DrawArraysInstancedANGLE(
|
|
33
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
34
|
+
ANGLE_instanced_arraysImpl *ptr = GetPointer(args.This());
|
|
35
|
+
if (ptr == nullptr) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
auto isolate = args.GetIsolate();
|
|
39
|
+
auto context = isolate->GetCurrentContext();
|
|
40
|
+
|
|
41
|
+
auto mode = args[0]->Uint32Value(context).ToChecked();
|
|
42
|
+
auto first = args[1]->Int32Value(context).ToChecked();
|
|
43
|
+
auto count_ = args[2]->Int32Value(context).ToChecked();
|
|
44
|
+
auto primcount = args[3]->Int32Value(context).ToChecked();
|
|
45
|
+
|
|
46
|
+
canvas_native_webgl_angle_instanced_arrays_draw_arrays_instanced_angle(
|
|
47
|
+
mode,
|
|
48
|
+
first,
|
|
49
|
+
count_,
|
|
50
|
+
primcount,
|
|
51
|
+
ptr->GetArrays()
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
void ANGLE_instanced_arraysImpl::DrawElementsInstancedANGLE(
|
|
56
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
57
|
+
ANGLE_instanced_arraysImpl *ptr = GetPointer(args.This());
|
|
58
|
+
if (ptr == nullptr) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
auto isolate = args.GetIsolate();
|
|
62
|
+
auto context = isolate->GetCurrentContext();
|
|
63
|
+
|
|
64
|
+
auto mode = args[0]->Uint32Value(context).ToChecked();
|
|
65
|
+
auto count = args[1]->Int32Value(context).ToChecked();
|
|
66
|
+
auto type = args[2]->Uint32Value(context).ToChecked();
|
|
67
|
+
auto offset = args[3]->Int32Value(context).ToChecked();
|
|
68
|
+
auto primcount = args[4]->Int32Value(context).ToChecked();
|
|
69
|
+
canvas_native_webgl_angle_instanced_arrays_draw_elements_instanced_angle(
|
|
70
|
+
mode,
|
|
71
|
+
count,
|
|
72
|
+
type,
|
|
73
|
+
offset,
|
|
74
|
+
primcount,
|
|
75
|
+
ptr->GetArrays()
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
void ANGLE_instanced_arraysImpl::VertexAttribDivisorANGLE(
|
|
80
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
81
|
+
ANGLE_instanced_arraysImpl *ptr = GetPointer(args.This());
|
|
82
|
+
if (ptr == nullptr) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
auto isolate = args.GetIsolate();
|
|
86
|
+
auto context = isolate->GetCurrentContext();
|
|
87
|
+
|
|
88
|
+
auto index = args[0]->Uint32Value(context).ToChecked();
|
|
89
|
+
auto divisor = args[1]->Uint32Value(context).ToChecked();
|
|
90
|
+
canvas_native_webgl_angle_instanced_arrays_vertex_attrib_divisor_angle(
|
|
91
|
+
index,
|
|
92
|
+
divisor,
|
|
93
|
+
ptr->GetArrays()
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
v8::Local<v8::FunctionTemplate> ANGLE_instanced_arraysImpl::GetCtor(v8::Isolate *isolate) {
|
|
99
|
+
auto cache = Caches::Get(isolate);
|
|
100
|
+
auto ctor = cache->ANGLE_instanced_arraysTmpl.get();
|
|
101
|
+
if (ctor != nullptr) {
|
|
102
|
+
return ctor->Get(isolate);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
106
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
107
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "ANGLE_instanced_arrays"));
|
|
108
|
+
|
|
109
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
110
|
+
tmpl->SetInternalFieldCount(2);
|
|
111
|
+
|
|
112
|
+
tmpl->Set(ConvertToV8String(isolate, "VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE"),
|
|
113
|
+
v8::Integer::NewFromUnsigned(isolate, 0x88FE));
|
|
114
|
+
|
|
115
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
116
|
+
ConvertToV8String(isolate, "ANGLE_instanced_arrays"));
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
SetFastMethod(isolate, tmpl, "drawArraysInstancedANGLE", DrawArraysInstancedANGLE,
|
|
120
|
+
&fast_draw_arrays_instanced_angle_, v8::Local<v8::Value>());
|
|
121
|
+
|
|
122
|
+
SetFastMethod(isolate, tmpl, "drawElementsInstancedANGLE", DrawElementsInstancedANGLE,
|
|
123
|
+
&fast_draw_elements_instanced_angle_, v8::Local<v8::Value>());
|
|
124
|
+
|
|
125
|
+
SetFastMethod(isolate, tmpl, "vertexAttribDivisorANGLE", VertexAttribDivisorANGLE,
|
|
126
|
+
&fast_vertex_attrib_divisor_angle_, v8::Local<v8::Value>());
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
cache->ANGLE_instanced_arraysTmpl =
|
|
130
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
131
|
+
return ctorTmpl;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
ANGLE_instanced_arrays *ANGLE_instanced_arraysImpl::GetArrays() {
|
|
135
|
+
return this->arrays_;
|
|
136
|
+
}
|