@nativescript/canvas 2.0.0-alpha.1 → 2.0.0-alpha.3
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/index.android.js +3 -3
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.ios.d.ts +3 -2
- package/Canvas/index.ios.js +74 -52
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +9 -2
- package/Canvas2D/CanvasGradient/index.js +23 -2
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +9 -2
- package/Canvas2D/CanvasPattern/index.js +20 -2
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +120 -132
- package/Canvas2D/CanvasRenderingContext2D/{index.android.js → index.js} +125 -133
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -0
- package/Canvas2D/DOMMatrix/index.d.ts +74 -2
- package/Canvas2D/DOMMatrix/index.js +180 -2
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.d.ts +15 -2
- package/Canvas2D/ImageData/index.js +66 -2
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +21 -2
- package/Canvas2D/Path2D/index.js +87 -2
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Canvas2D/TextMetrics/index.d.ts +17 -2
- package/Canvas2D/TextMetrics/index.js +44 -2
- package/Canvas2D/TextMetrics/index.js.map +1 -1
- package/Dom/Dom.d.ts +10 -0
- package/Dom/Dom.js +36 -0
- package/Dom/Dom.js.map +1 -0
- package/Dom/Fill.d.ts +4 -0
- package/Dom/Fill.js +8 -0
- package/Dom/Fill.js.map +1 -0
- package/Dom/Group.d.ts +21 -0
- package/Dom/Group.js +179 -0
- package/Dom/Group.js.map +1 -0
- package/Dom/Image.d.ts +12 -0
- package/Dom/Image.js +33 -0
- package/Dom/Image.js.map +1 -0
- package/Dom/Paint.d.ts +15 -0
- package/Dom/Paint.js +58 -0
- package/Dom/Paint.js.map +1 -0
- package/Dom/Shadow.d.ts +10 -0
- package/Dom/Shadow.js +26 -0
- package/Dom/Shadow.js.map +1 -0
- package/Dom/Text.d.ts +9 -0
- package/Dom/Text.js +50 -0
- package/Dom/Text.js.map +1 -0
- package/Dom/index.d.ts +8 -0
- package/Dom/index.js +9 -0
- package/Dom/index.js.map +1 -0
- package/Dom/shapes/Circle.d.ts +21 -0
- package/Dom/shapes/Circle.js +99 -0
- package/Dom/shapes/Circle.js.map +1 -0
- package/Dom/shapes/Line.d.ts +9 -0
- package/Dom/shapes/Line.js +37 -0
- package/Dom/shapes/Line.js.map +1 -0
- package/Dom/shapes/Path.d.ts +8 -0
- package/Dom/shapes/Path.js +31 -0
- package/Dom/shapes/Path.js.map +1 -0
- package/Dom/shapes/Points.d.ts +15 -0
- package/Dom/shapes/Points.js +21 -0
- package/Dom/shapes/Points.js.map +1 -0
- package/Dom/shapes/Rect.d.ts +15 -0
- package/Dom/shapes/Rect.js +63 -0
- package/Dom/shapes/Rect.js.map +1 -0
- package/Dom/shapes/RoundedRect.d.ts +12 -0
- package/Dom/shapes/RoundedRect.js +96 -0
- package/Dom/shapes/RoundedRect.js.map +1 -0
- package/Dom/shapes/index.d.ts +6 -0
- package/Dom/shapes/index.js +7 -0
- package/Dom/shapes/index.js.map +1 -0
- package/ImageAsset/index.d.ts +28 -2
- package/ImageAsset/index.js +158 -2
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/{index.android.d.ts → index.d.ts} +3 -2
- package/ImageBitmap/{index.android.js → index.js} +7 -4
- package/ImageBitmap/index.js.map +1 -0
- package/TextDecoder/index.d.ts +9 -2
- package/TextDecoder/index.js +53 -2
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +9 -2
- package/TextEncoder/index.js +51 -2
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +159 -242
- package/WebGL/WebGLExtensions/{index.android.js → index.js} +1 -1
- package/WebGL/WebGLExtensions/index.js.map +1 -0
- package/WebGL/WebGLRenderingContext/index.d.ts +153 -293
- package/WebGL/WebGLRenderingContext/{index.android.js → index.js} +25 -8
- package/WebGL/WebGLRenderingContext/index.js.map +1 -0
- package/WebGL2/WebGL2RenderingContext/common.d.ts +1 -0
- package/WebGL2/WebGL2RenderingContext/common.js +3 -0
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +101 -455
- package/WebGL2/WebGL2RenderingContext/{index.android.js → index.js} +16 -6
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -0
- package/helpers.js +3 -0
- package/helpers.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -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 +93 -1718
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- 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 +176 -3436
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +49 -93
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +2 -1
- package/platforms/ios/build.xcconfig +5 -0
- package/platforms/ios/src/CanvasModule.h +10 -0
- package/platforms/ios/src/CanvasModule.mm +14 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +60 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +1105 -0
- package/platforms/ios/src/cpp/Helpers.h +61 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +30 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +417 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +41 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +126 -0
- package/platforms/ios/src/cpp/JSICallback.h +15 -0
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +16 -0
- package/platforms/ios/src/cpp/OnRafCallback.h +24 -0
- package/platforms/ios/src/cpp/OnRafCallback.mm +25 -0
- package/platforms/ios/src/cpp/RafImpl.h +27 -0
- package/platforms/ios/src/cpp/RafImpl.mm +10 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +97 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +60 -0
- package/platforms/ios/src/cpp/VecMutableBuffer.h +51 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +6119 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +2854 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +28 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +42 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +49 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +70 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +1954 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +68 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +149 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +27 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +335 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +68 -0
- package/platforms/ios/src/cpp/gl.h +29 -0
- package/platforms/ios/src/cpp/rust/cxx.cc +793 -0
- package/platforms/ios/src/cpp/rust/cxx.h +1111 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +39 -0
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +516 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +5879 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +63 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +97 -0
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +23 -0
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +108 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +16 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +17 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +42 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +295 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +29 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +37 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +127 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +20 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +70 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +47 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +46 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +49 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +177 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +64 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +431 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +4554 -0
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +24 -0
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +21 -0
- package/platforms/ios/src/module.modulemap +4 -0
- package/Canvas2D/CanvasGradient/CanvasGradient.android.d.ts +0 -10
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js +0 -26
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js.map +0 -1
- package/Canvas2D/CanvasGradient/CanvasGradient.d.ts +0 -12
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.d.ts +0 -8
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js +0 -19
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js.map +0 -1
- package/Canvas2D/CanvasGradient/common.d.ts +0 -3
- package/Canvas2D/CanvasGradient/common.js +0 -3
- package/Canvas2D/CanvasGradient/common.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.android.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js +0 -20
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.d.ts +0 -6
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js +0 -10
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js.map +0 -1
- package/Canvas2D/CanvasPattern/common.d.ts +0 -7
- package/Canvas2D/CanvasPattern/common.js +0 -9
- package/Canvas2D/CanvasPattern/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/common.d.ts +0 -87
- package/Canvas2D/CanvasRenderingContext2D/common.js +0 -12
- package/Canvas2D/CanvasRenderingContext2D/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.d.ts +0 -112
- package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.ios.d.ts +0 -110
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js +0 -897
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.android.d.ts +0 -72
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js +0 -177
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.d.ts +0 -30
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.d.ts +0 -48
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js +0 -142
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/common.d.ts +0 -27
- package/Canvas2D/DOMMatrix/common.js +0 -9
- package/Canvas2D/DOMMatrix/common.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.android.d.ts +0 -9
- package/Canvas2D/ImageData/ImageData.android.js +0 -65
- package/Canvas2D/ImageData/ImageData.android.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.d.ts +0 -11
- package/Canvas2D/ImageData/ImageData.ios.d.ts +0 -10
- package/Canvas2D/ImageData/ImageData.ios.js +0 -45
- package/Canvas2D/ImageData/ImageData.ios.js.map +0 -1
- package/Canvas2D/ImageData/common.d.ts +0 -9
- package/Canvas2D/ImageData/common.js +0 -13
- package/Canvas2D/ImageData/common.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.android.d.ts +0 -18
- package/Canvas2D/Path2D/Path2D.android.js +0 -83
- package/Canvas2D/Path2D/Path2D.android.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.d.ts +0 -26
- package/Canvas2D/Path2D/Path2D.ios.d.ts +0 -15
- package/Canvas2D/Path2D/Path2D.ios.js +0 -55
- package/Canvas2D/Path2D/Path2D.ios.js.map +0 -1
- package/Canvas2D/Path2D/common.d.ts +0 -17
- package/Canvas2D/Path2D/common.js +0 -12
- package/Canvas2D/Path2D/common.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.android.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.android.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.android.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.d.ts +0 -7
- package/Canvas2D/TextMetrics/TextMetrics.ios.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.ios.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.ios.js.map +0 -1
- package/Canvas2D/TextMetrics/common.d.ts +0 -18
- package/Canvas2D/TextMetrics/common.js +0 -13
- package/Canvas2D/TextMetrics/common.js.map +0 -1
- package/ImageAsset/ImageAsset.android.d.ts +0 -20
- package/ImageAsset/ImageAsset.android.js +0 -149
- package/ImageAsset/ImageAsset.android.js.map +0 -1
- package/ImageAsset/ImageAsset.d.ts +0 -31
- package/ImageAsset/ImageAsset.ios.d.ts +0 -22
- package/ImageAsset/ImageAsset.ios.js +0 -114
- package/ImageAsset/ImageAsset.ios.js.map +0 -1
- package/ImageAsset/common.d.ts +0 -13
- package/ImageAsset/common.js +0 -21
- package/ImageAsset/common.js.map +0 -1
- package/ImageBitmap/common.d.ts +0 -8
- package/ImageBitmap/common.js +0 -9
- package/ImageBitmap/common.js.map +0 -1
- package/ImageBitmap/index.android.js.map +0 -1
- package/ImageBitmap/index.ios.d.ts +0 -12
- package/ImageBitmap/index.ios.js +0 -283
- package/ImageBitmap/index.ios.js.map +0 -1
- package/TextDecoder/TextDecoder.android.d.ts +0 -8
- package/TextDecoder/TextDecoder.android.js +0 -52
- package/TextDecoder/TextDecoder.android.js.map +0 -1
- package/TextDecoder/TextDecoder.d.ts +0 -10
- package/TextDecoder/TextDecoder.ios.d.ts +0 -6
- package/TextDecoder/TextDecoder.ios.js +0 -37
- package/TextDecoder/TextDecoder.ios.js.map +0 -1
- package/TextDecoder/common.d.ts +0 -8
- package/TextDecoder/common.js +0 -13
- package/TextDecoder/common.js.map +0 -1
- package/TextEncoder/TextEncoder.android.d.ts +0 -8
- package/TextEncoder/TextEncoder.android.js +0 -50
- package/TextEncoder/TextEncoder.android.js.map +0 -1
- package/TextEncoder/TextEncoder.d.ts +0 -10
- package/TextEncoder/TextEncoder.ios.d.ts +0 -6
- package/TextEncoder/TextEncoder.ios.js +0 -14
- package/TextEncoder/TextEncoder.ios.js.map +0 -1
- package/TextEncoder/common.d.ts +0 -7
- package/TextEncoder/common.js +0 -9
- package/TextEncoder/common.js.map +0 -1
- package/WebGL/WebGLExtensions/index.android.d.ts +0 -209
- package/WebGL/WebGLExtensions/index.android.js.map +0 -1
- package/WebGL/WebGLExtensions/index.ios.d.ts +0 -192
- package/WebGL/WebGLExtensions/index.ios.js +0 -250
- package/WebGL/WebGLExtensions/index.ios.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.android.d.ts +0 -165
- package/WebGL/WebGLRenderingContext/index.android.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.ios.d.ts +0 -163
- package/WebGL/WebGLRenderingContext/index.ios.js +0 -1168
- package/WebGL/WebGLRenderingContext/index.ios.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.android.d.ts +0 -103
- package/WebGL2/WebGL2RenderingContext/index.android.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.ios.d.ts +0 -102
- package/WebGL2/WebGL2RenderingContext/index.ios.js +0 -618
- package/WebGL2/WebGL2RenderingContext/index.ios.js.map +0 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +0 -3264
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 22/03/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
#pragma process_pending_includes
|
|
7
|
+
|
|
8
|
+
#include <vector>
|
|
9
|
+
#include "rust/cxx.h"
|
|
10
|
+
|
|
11
|
+
#include "canvas2d/CanvasRenderingContext2DImpl.h"
|
|
12
|
+
#include "RafImpl.h"
|
|
13
|
+
|
|
14
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
15
|
+
#import "NativeScript/JSIRuntime.h"
|
|
16
|
+
#include "VecMutableBuffer.h"
|
|
17
|
+
#include <cmath>
|
|
18
|
+
#include "Helpers.h"
|
|
19
|
+
#include "webgl/WebGLRenderingContextBase.h"
|
|
20
|
+
#include "webgl/WebGLRenderingContext.h"
|
|
21
|
+
#include "WebGLQuery.h"
|
|
22
|
+
#include "WebGLSampler.h"
|
|
23
|
+
#include "WebGLSyncImpl.h"
|
|
24
|
+
#include "WebGLTransformFeedback.h"
|
|
25
|
+
#include "WebGLVertexArrayObject.h"
|
|
26
|
+
#include "gl.h"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
using namespace facebook;
|
|
30
|
+
using namespace org::nativescript::canvas;
|
|
31
|
+
|
|
32
|
+
class JSI_EXPORT WebGL2RenderingContext : public WebGLRenderingContext {
|
|
33
|
+
public:
|
|
34
|
+
|
|
35
|
+
WebGL2RenderingContext(rust::Box<WebGLState> state);
|
|
36
|
+
|
|
37
|
+
WebGL2RenderingContext(rust::Box<WebGLState> state, WebGLRenderingVersion version);
|
|
38
|
+
|
|
39
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt) override;
|
|
40
|
+
|
|
41
|
+
jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override;
|
|
42
|
+
|
|
43
|
+
static inline jsi::Value GetProperty(const std::string &methodName) {
|
|
44
|
+
if (methodName == "READ_BUFFER") { return {0x0C02}; }
|
|
45
|
+
|
|
46
|
+
if (methodName == "UNPACK_ROW_LENGTH") { return {0x0CF2}; }
|
|
47
|
+
|
|
48
|
+
if (methodName == "UNPACK_SKIP_ROWS") { return {0x0CF3}; }
|
|
49
|
+
|
|
50
|
+
if (methodName == "UNPACK_SKIP_PIXELS") { return {0x0CF4}; }
|
|
51
|
+
|
|
52
|
+
if (methodName == "PACK_ROW_LENGTH") { return {0x0D02}; }
|
|
53
|
+
|
|
54
|
+
if (methodName == "PACK_SKIP_ROWS") { return {0x0D03}; }
|
|
55
|
+
|
|
56
|
+
if (methodName == "PACK_SKIP_PIXELS") { return {0x0D04}; }
|
|
57
|
+
|
|
58
|
+
if (methodName == "TEXTURE_BINDING_3D") { return {0x806A}; }
|
|
59
|
+
|
|
60
|
+
if (methodName == "UNPACK_SKIP_IMAGES") { return {0x806D}; }
|
|
61
|
+
|
|
62
|
+
if (methodName == "UNPACK_IMAGE_HEIGHT") { return {0x806E}; }
|
|
63
|
+
|
|
64
|
+
if (methodName == "MAX_3D_TEXTURE_SIZE") { return {0x8073}; }
|
|
65
|
+
|
|
66
|
+
if (methodName == "MAX_ELEMENTS_VERTICES") { return {0x80E8}; }
|
|
67
|
+
|
|
68
|
+
if (methodName == "MAX_ELEMENTS_INDICES") { return {0x80E9}; }
|
|
69
|
+
|
|
70
|
+
if (methodName == "MAX_TEXTURE_LOD_BIAS") { return {0x84FD}; }
|
|
71
|
+
|
|
72
|
+
if (methodName == "MAX_FRAGMENT_UNIFORM_COMPONENTS") { return {0x8B49}; }
|
|
73
|
+
|
|
74
|
+
if (methodName == "MAX_VERTEX_UNIFORM_COMPONENTS") { return {0x8B4A}; }
|
|
75
|
+
|
|
76
|
+
if (methodName == "MAX_ARRAY_TEXTURE_LAYERS") { return {0x88FF}; }
|
|
77
|
+
|
|
78
|
+
if (methodName == "MIN_PROGRAM_TEXEL_OFFSET") { return {0x8904}; }
|
|
79
|
+
|
|
80
|
+
if (methodName == "MAX_PROGRAM_TEXEL_OFFSET") { return {0x8905}; }
|
|
81
|
+
|
|
82
|
+
if (methodName == "MAX_VARYING_COMPONENTS") { return {0x8B4B}; }
|
|
83
|
+
|
|
84
|
+
if (methodName == "FRAGMENT_SHADER_DERIVATIVE_HINT") { return {0x8B8B}; }
|
|
85
|
+
|
|
86
|
+
if (methodName == "RASTERIZER_DISCARD") { return {0x8C89}; }
|
|
87
|
+
|
|
88
|
+
if (methodName == "VERTEX_ARRAY_BINDING") { return {0x85B5}; }
|
|
89
|
+
if (methodName == "MAX_VERTEX_OUTPUT_COMPONENTS") { return {0x9122}; }
|
|
90
|
+
if (methodName == "MAX_FRAGMENT_INPUT_COMPONENTS") { return {0x9125}; }
|
|
91
|
+
if (methodName == "MAX_SERVER_WAIT_TIMEOUT") { return {0x9111}; }
|
|
92
|
+
if (methodName == "MAX_ELEMENT_INDEX") { return {0x8D6B}; }
|
|
93
|
+
|
|
94
|
+
if (methodName == "RED") { return {0x1903}; }
|
|
95
|
+
if (methodName == "RGB8") { return {0x8051}; }
|
|
96
|
+
if (methodName == "RGBA8") { return {0x8058}; }
|
|
97
|
+
if (methodName == "RGB10_A2") { return {0x8059}; }
|
|
98
|
+
if (methodName == "TEXTURE_3D") { return {0x806F}; }
|
|
99
|
+
|
|
100
|
+
if (methodName == "TEXTURE_WRAP_R") { return {0x8072}; }
|
|
101
|
+
if (methodName == "TEXTURE_MIN_LOD") { return {0x813A}; }
|
|
102
|
+
if (methodName == "TEXTURE_MAX_LOD") { return {0x813B}; }
|
|
103
|
+
if (methodName == "TEXTURE_BASE_LEVEL") { return {0x813C}; }
|
|
104
|
+
if (methodName == "TEXTURE_MAX_LEVEL") { return {0x813D}; }
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
if (methodName == "TEXTURE_COMPARE_MODE") { return {0x884C}; }
|
|
108
|
+
if (methodName == "TEXTURE_COMPARE_FUNC") { return {0x884D}; }
|
|
109
|
+
if (methodName == "SRGB") { return {0x8C40}; }
|
|
110
|
+
if (methodName == "SRGB8") { return {0x8C41}; }
|
|
111
|
+
if (methodName == "SRGB8_ALPHA8") { return {0x8C43}; }
|
|
112
|
+
|
|
113
|
+
if (methodName == "COMPARE_REF_TO_TEXTURE") { return {0x884E}; }
|
|
114
|
+
if (methodName == "RGBA32F") { return {0x8814}; }
|
|
115
|
+
if (methodName == "RGB32F") { return {0x8815}; }
|
|
116
|
+
if (methodName == "RGBA16F") { return {0x881A}; }
|
|
117
|
+
if (methodName == "RGB16F") { return {0x881B}; }
|
|
118
|
+
|
|
119
|
+
if (methodName == "TEXTURE_2D_ARRAY") { return {0x8C1A}; }
|
|
120
|
+
if (methodName == "TEXTURE_BINDING_2D_ARRAY") { return {0x8C1D}; }
|
|
121
|
+
if (methodName == "R11F_G11F_B10F") { return {0x8C3A}; }
|
|
122
|
+
if (methodName == "RGB9_E5") { return {0x8C3D}; }
|
|
123
|
+
if (methodName == "RGBA32UI") { return {0x8D70}; }
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
if (methodName == "RGB32UI") { return {0x8D71}; }
|
|
127
|
+
if (methodName == "RGBA16UI") { return {0x8D76}; }
|
|
128
|
+
if (methodName == "RGB16UI") { return {0x8D77}; }
|
|
129
|
+
if (methodName == "RGBA8UI") { return {0x8D7C}; }
|
|
130
|
+
if (methodName == "RGB8UI") { return {0x8D7D}; }
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
if (methodName == "RGBA32I") { return {0x8D82}; }
|
|
134
|
+
if (methodName == "RGB32I") { return {0x8D83}; }
|
|
135
|
+
if (methodName == "RGBA16I") { return {0x8D88}; }
|
|
136
|
+
if (methodName == "RGB16I") { return {0x8D89}; }
|
|
137
|
+
if (methodName == "RGBA8I") { return {0x8D8E}; }
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
if (methodName == "RGB8I") { return {0x8D8F}; }
|
|
141
|
+
if (methodName == "RED_INTEGER") { return {0x8D94}; }
|
|
142
|
+
if (methodName == "RGB_INTEGER") { return {0x8D98}; }
|
|
143
|
+
if (methodName == "RGBA_INTEGER") { return {0x8D99}; }
|
|
144
|
+
if (methodName == "R8") { return {0x8229}; }
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
if (methodName == "RG8") { return {0x822B}; }
|
|
148
|
+
if (methodName == "R16F") { return {0x822D}; }
|
|
149
|
+
if (methodName == "R32F") { return {0x822E}; }
|
|
150
|
+
if (methodName == "RG16F") { return {0x822F}; }
|
|
151
|
+
if (methodName == "RG32F") { return {0x8230}; }
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
if (methodName == "R8I") { return {0x8231}; }
|
|
155
|
+
if (methodName == "R8UI") { return {0x8232}; }
|
|
156
|
+
if (methodName == "R16I") { return {0x8233}; }
|
|
157
|
+
if (methodName == "R16UI") { return {0x8234}; }
|
|
158
|
+
if (methodName == "R32I") { return {0x8235}; }
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
if (methodName == "R32UI") { return {0x8236}; }
|
|
162
|
+
if (methodName == "RG8I") { return {0x8237}; }
|
|
163
|
+
if (methodName == "RG8UI") { return {0x8238}; }
|
|
164
|
+
if (methodName == "RG16I") { return {0x8239}; }
|
|
165
|
+
if (methodName == "RG16UI") { return {0x823A}; }
|
|
166
|
+
|
|
167
|
+
if (methodName == "RG32I") { return {0x823B}; }
|
|
168
|
+
if (methodName == "RG32UI") { return {0x823C}; }
|
|
169
|
+
if (methodName == "R8_SNORM") { return {0x8F94}; }
|
|
170
|
+
if (methodName == "RG8_SNORM") { return {0x8F95}; }
|
|
171
|
+
if (methodName == "RGB8_SNORM") { return {0x8F96}; }
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
if (methodName == "RGBA8_SNORM") { return {0x8F97}; }
|
|
175
|
+
if (methodName == "RGB10_A2UI") { return {0x906F}; }
|
|
176
|
+
if (methodName == "TEXTURE_IMMUTABLE_FORMAT") { return {0x912F}; }
|
|
177
|
+
if (methodName == "TEXTURE_IMMUTABLE_LEVELS") { return {0x82DF}; }
|
|
178
|
+
if (methodName == "UNSIGNED_INT_2_10_10_10_REV") { return {0x8368}; }
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
if (methodName == "UNSIGNED_INT_10F_11F_11F_REV") { return {0x8C3B}; }
|
|
182
|
+
if (methodName == "UNSIGNED_INT_5_9_9_9_REV") { return {0x8C3E}; }
|
|
183
|
+
if (methodName == "FLOAT_32_UNSIGNED_INT_24_8_REV") { return {0x8DAD}; }
|
|
184
|
+
if (methodName == "UNSIGNED_INT_24_8") { return {0x84FA}; }
|
|
185
|
+
if (methodName == "HALF_FLOAT") { return {0x140B}; }
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
if (methodName == "RG") { return {0x8227}; }
|
|
189
|
+
if (methodName == "RG_INTEGER") { return {0x8228}; }
|
|
190
|
+
if (methodName == "INT_2_10_10_10_REV") { return {0x8D9F}; }
|
|
191
|
+
if (methodName == "QUERY_RESULT_AVAILABLE") { return {0x8865}; }
|
|
192
|
+
if (methodName == "QUERY_RESULT") { return {0x8866}; }
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
if (methodName == "CURRENT_QUERY") { return {0x8867}; }
|
|
196
|
+
if (methodName == "ANY_SAMPLES_PASSED") { return {0x8C2F}; }
|
|
197
|
+
if (methodName == "ANY_SAMPLES_PASSED_CONSERVATIVE") { return {0x8D6A}; }
|
|
198
|
+
if (methodName == "MAX_DRAW_BUFFERS") { return {0x8824}; }
|
|
199
|
+
|
|
200
|
+
if (methodName == "DRAW_BUFFER0") { return {0x8825}; }
|
|
201
|
+
if (methodName == "DRAW_BUFFER1") { return {0x8826}; }
|
|
202
|
+
if (methodName == "DRAW_BUFFER2") { return {0x8827}; }
|
|
203
|
+
if (methodName == "DRAW_BUFFER3") { return {0x8828}; }
|
|
204
|
+
if (methodName == "DRAW_BUFFER4") { return {0x8829}; }
|
|
205
|
+
if (methodName == "DRAW_BUFFER5") { return {0x882A}; }
|
|
206
|
+
if (methodName == "DRAW_BUFFER6") { return {0x882B}; }
|
|
207
|
+
if (methodName == "DRAW_BUFFER7") { return {0x882C}; }
|
|
208
|
+
if (methodName == "DRAW_BUFFER8") { return {0x882D}; }
|
|
209
|
+
if (methodName == "DRAW_BUFFER9") { return {0x882E}; }
|
|
210
|
+
if (methodName == "DRAW_BUFFER10") { return {0x882F}; }
|
|
211
|
+
|
|
212
|
+
/* Getting GL parameter information */
|
|
213
|
+
|
|
214
|
+
/* Textures */
|
|
215
|
+
|
|
216
|
+
if (methodName == "DRAW_BUFFER11") { return {0x8830}; }
|
|
217
|
+
if (methodName == "DRAW_BUFFER12") { return {0x8831}; }
|
|
218
|
+
if (methodName == "DRAW_BUFFER13") { return {0x8832}; }
|
|
219
|
+
if (methodName == "DRAW_BUFFER14") { return {0x8833}; }
|
|
220
|
+
if (methodName == "DRAW_BUFFER15") { return {0x8834}; }
|
|
221
|
+
|
|
222
|
+
if (methodName == "MAX_COLOR_ATTACHMENTS") { return {0x8CDF}; }
|
|
223
|
+
if (methodName == "COLOR_ATTACHMENT1") { return {0x8CE1}; }
|
|
224
|
+
if (methodName == "COLOR_ATTACHMENT2") { return {0x8CE2}; }
|
|
225
|
+
if (methodName == "COLOR_ATTACHMENT3") { return {0x8CE3}; }
|
|
226
|
+
if (methodName == "COLOR_ATTACHMENT4") { return {0x8CE4}; }
|
|
227
|
+
if (methodName == "COLOR_ATTACHMENT5") { return {0x8CE5}; }
|
|
228
|
+
if (methodName == "COLOR_ATTACHMENT6") { return {0x8CE6}; }
|
|
229
|
+
if (methodName == "COLOR_ATTACHMENT7") { return {0x8CE7}; }
|
|
230
|
+
if (methodName == "COLOR_ATTACHMENT8") { return {0x8CE8}; }
|
|
231
|
+
if (methodName == "COLOR_ATTACHMENT9") { return {0x8CE9}; }
|
|
232
|
+
if (methodName == "COLOR_ATTACHMENT10") { return {0x8CEA}; }
|
|
233
|
+
if (methodName == "COLOR_ATTACHMENT11") { return {0x8CEB}; }
|
|
234
|
+
if (methodName == "COLOR_ATTACHMENT12") { return {0x8CEC}; }
|
|
235
|
+
if (methodName == "COLOR_ATTACHMENT13") { return {0x8CED}; }
|
|
236
|
+
if (methodName == "COLOR_ATTACHMENT14") { return {0x8CEE}; }
|
|
237
|
+
if (methodName == "COLOR_ATTACHMENT15") { return {0x8CEF}; }
|
|
238
|
+
|
|
239
|
+
if (methodName == "SAMPLER_3D") { return {0x8B5F}; }
|
|
240
|
+
if (methodName == "SAMPLER_2D_SHADOW") { return {0x8B62}; }
|
|
241
|
+
if (methodName == "SAMPLER_2D_ARRAY") { return {0x8DC1}; }
|
|
242
|
+
if (methodName == "SAMPLER_2D_ARRAY_SHADOW") { return {0x8DC4}; }
|
|
243
|
+
if (methodName == "SAMPLER_CUBE_SHADOW") { return {0x8DC5}; }
|
|
244
|
+
|
|
245
|
+
if (methodName == "INT_SAMPLER_2D") { return {0x8DCA}; }
|
|
246
|
+
if (methodName == "INT_SAMPLER_3D") { return {0x8DCB}; }
|
|
247
|
+
if (methodName == "INT_SAMPLER_CUBE") { return {0x8DCC}; }
|
|
248
|
+
if (methodName == "INT_SAMPLER_2D_ARRAY") { return {0x8DCF}; }
|
|
249
|
+
if (methodName == "UNSIGNED_INT_SAMPLER_2D") { return {0x8DD2}; }
|
|
250
|
+
|
|
251
|
+
if (methodName == "UNSIGNED_INT_SAMPLER_3D") { return {0x8DD3}; }
|
|
252
|
+
if (methodName == "UNSIGNED_INT_SAMPLER_CUBE") { return {0x8DD4}; }
|
|
253
|
+
if (methodName == "UNSIGNED_INT_SAMPLER_2D_ARRAY") { return {0x8DD7}; }
|
|
254
|
+
if (methodName == "MAX_SAMPLES") { return {0x8D57}; }
|
|
255
|
+
if (methodName == "SAMPLER_BINDING") { return {0x8919}; }
|
|
256
|
+
|
|
257
|
+
if (methodName == "PIXEL_PACK_BUFFER") { return {0x88EB}; }
|
|
258
|
+
if (methodName == "PIXEL_UNPACK_BUFFER") { return {0x88EC}; }
|
|
259
|
+
if (methodName == "PIXEL_PACK_BUFFER_BINDING") { return {0x88ED}; }
|
|
260
|
+
if (methodName == "PIXEL_UNPACK_BUFFER_BINDING") { return {0x88EF}; }
|
|
261
|
+
if (methodName == "COPY_READ_BUFFER") { return {0x8F36}; }
|
|
262
|
+
|
|
263
|
+
if (methodName == "COPY_WRITE_BUFFER") { return {0x8F37}; }
|
|
264
|
+
if (methodName == "COPY_READ_BUFFER_BINDING") { return {0x8F36}; }
|
|
265
|
+
if (methodName == "COPY_WRITE_BUFFER_BINDING") { return {0x8F37}; }
|
|
266
|
+
if (methodName == "FLOAT_MAT2x3") { return {0x8B65}; }
|
|
267
|
+
if (methodName == "FLOAT_MAT2x4") { return {0x8B66}; }
|
|
268
|
+
|
|
269
|
+
if (methodName == "FLOAT_MAT3x2") { return {0x8B67}; }
|
|
270
|
+
if (methodName == "FLOAT_MAT3x4") { return {0x8B68}; }
|
|
271
|
+
if (methodName == "FLOAT_MAT4x2") { return {0x8B69}; }
|
|
272
|
+
if (methodName == "FLOAT_MAT4x3") { return {0x8B6A}; }
|
|
273
|
+
if (methodName == "UNSIGNED_INT_VEC2") { return {0x8DC6}; }
|
|
274
|
+
|
|
275
|
+
if (methodName == "UNSIGNED_INT_VEC3") { return {0x8DC7}; }
|
|
276
|
+
if (methodName == "UNSIGNED_INT_VEC4") { return {0x8DC8}; }
|
|
277
|
+
if (methodName == "UNSIGNED_NORMALIZED") { return {0x8C17}; }
|
|
278
|
+
if (methodName == "SIGNED_NORMALIZED") { return {0x8F9C}; }
|
|
279
|
+
|
|
280
|
+
/* Vertex attributes */
|
|
281
|
+
|
|
282
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_INTEGER") { return {0x88FD}; }
|
|
283
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_DIVISOR") { return {0x88FE}; }
|
|
284
|
+
if (methodName == "TRANSFORM_FEEDBACK_BUFFER_MODE") { return {0x8C7F}; }
|
|
285
|
+
if (methodName == "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS") { return {0x8C80}; }
|
|
286
|
+
if (methodName == "TRANSFORM_FEEDBACK_VARYINGS") { return {0x8C83}; }
|
|
287
|
+
|
|
288
|
+
if (methodName == "TRANSFORM_FEEDBACK_BUFFER_START") { return {0x8C84}; }
|
|
289
|
+
if (methodName == "TRANSFORM_FEEDBACK_BUFFER_SIZE") { return {0x8C85}; }
|
|
290
|
+
if (methodName == "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN") { return {0x8C88}; }
|
|
291
|
+
if (methodName == "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS") { return {0x8C8A}; }
|
|
292
|
+
|
|
293
|
+
/* Textures */
|
|
294
|
+
|
|
295
|
+
/* Pixel types */
|
|
296
|
+
|
|
297
|
+
if (methodName == "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS") { return {0x8C8B}; }
|
|
298
|
+
if (methodName == "INTERLEAVED_ATTRIBS") { return {0x8C8C}; }
|
|
299
|
+
if (methodName == "SEPARATE_ATTRIBS") { return {0x8C8D}; }
|
|
300
|
+
if (methodName == "TRANSFORM_FEEDBACK_BUFFER") { return {0x8C8E}; }
|
|
301
|
+
if (methodName == "TRANSFORM_FEEDBACK_BUFFER_BINDING") { return {0x8C8F}; }
|
|
302
|
+
|
|
303
|
+
if (methodName == "TRANSFORM_FEEDBACK") { return {0x8E22}; }
|
|
304
|
+
if (methodName == "TRANSFORM_FEEDBACK_PAUSED") { return {0x8E23}; }
|
|
305
|
+
if (methodName == "TRANSFORM_FEEDBACK_ACTIVE") { return {0x8E24}; }
|
|
306
|
+
if (methodName == "TRANSFORM_FEEDBACK_BINDING") { return {0x8E25}; }
|
|
307
|
+
|
|
308
|
+
/* Pixel types */
|
|
309
|
+
|
|
310
|
+
/* Queries */
|
|
311
|
+
|
|
312
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING") { return {0x8210}; }
|
|
313
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE") { return {0x8211}; }
|
|
314
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_RED_SIZE") { return {0x8212}; }
|
|
315
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE") { return {0x8213}; }
|
|
316
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE") { return {0x8214}; }
|
|
317
|
+
|
|
318
|
+
/* Queries */
|
|
319
|
+
|
|
320
|
+
/* Draw buffers */
|
|
321
|
+
|
|
322
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE") { return {0x8215}; }
|
|
323
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE") { return {0x8216}; }
|
|
324
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE") { return {0x8217}; }
|
|
325
|
+
if (methodName == "FRAMEBUFFER_DEFAULT") { return {0x8218}; }
|
|
326
|
+
if (methodName == "DEPTH_STENCIL_ATTACHMENT") { return {0x821A}; }
|
|
327
|
+
|
|
328
|
+
if (methodName == "DEPTH_STENCIL") { return {0x84F9}; }
|
|
329
|
+
if (methodName == "DEPTH24_STENCIL8") { return {0x88F0}; }
|
|
330
|
+
if (methodName == "DRAW_FRAMEBUFFER_BINDING") { return {0x8CA6}; }
|
|
331
|
+
if (methodName == "READ_FRAMEBUFFER") { return {0x8CA8}; }
|
|
332
|
+
if (methodName == "DRAW_FRAMEBUFFER") { return {0x8CA9}; }
|
|
333
|
+
|
|
334
|
+
if (methodName == "READ_FRAMEBUFFER_BINDING") { return {0x8CAA}; }
|
|
335
|
+
if (methodName == "RENDERBUFFER_SAMPLES") { return {0x8CAB}; }
|
|
336
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER") { return {0x8CD4}; }
|
|
337
|
+
if (methodName == "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE") { return {0x8D56}; }
|
|
338
|
+
if (methodName == "UNIFORM_BUFFER") { return {0x8A11}; }
|
|
339
|
+
|
|
340
|
+
if (methodName == "UNIFORM_BUFFER_BINDING") { return {0x8A28}; }
|
|
341
|
+
if (methodName == "UNIFORM_BUFFER_START") { return {0x8A29}; }
|
|
342
|
+
if (methodName == "UNIFORM_BUFFER_SIZE") { return {0x8A2A}; }
|
|
343
|
+
if (methodName == "MAX_VERTEX_UNIFORM_BLOCKS") { return {0x8A2B}; }
|
|
344
|
+
if (methodName == "MAX_FRAGMENT_UNIFORM_BLOCKS") { return {0x8A2D}; }
|
|
345
|
+
|
|
346
|
+
if (methodName == "MAX_COMBINED_UNIFORM_BLOCKS") { return {0x8A2E}; }
|
|
347
|
+
if (methodName == "MAX_UNIFORM_BUFFER_BINDINGS") { return {0x8A2F}; }
|
|
348
|
+
if (methodName == "MAX_UNIFORM_BLOCK_SIZE") { return {0x8A30}; }
|
|
349
|
+
if (methodName == "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS") { return {0x8A31}; }
|
|
350
|
+
if (methodName == "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS") { return {0x8A33}; }
|
|
351
|
+
|
|
352
|
+
if (methodName == "UNIFORM_BUFFER_OFFSET_ALIGNMENT") { return {0x8A34}; }
|
|
353
|
+
if (methodName == "ACTIVE_UNIFORM_BLOCKS") { return {0x8A36}; }
|
|
354
|
+
if (methodName == "UNIFORM_TYPE") { return {0x8A37}; }
|
|
355
|
+
if (methodName == "UNIFORM_SIZE") { return {0x8A38}; }
|
|
356
|
+
if (methodName == "UNIFORM_BLOCK_INDEX") { return {0x8A3A}; }
|
|
357
|
+
|
|
358
|
+
if (methodName == "UNIFORM_OFFSET") { return {0x8A3B}; }
|
|
359
|
+
if (methodName == "UNIFORM_ARRAY_STRIDE") { return {0x8A3C}; }
|
|
360
|
+
if (methodName == "UNIFORM_MATRIX_STRIDE") { return {0x8A3D}; }
|
|
361
|
+
|
|
362
|
+
/* Draw buffers */
|
|
363
|
+
|
|
364
|
+
/* Samplers */
|
|
365
|
+
|
|
366
|
+
if (methodName == "UNIFORM_IS_ROW_MAJOR") { return {0x8A3E}; }
|
|
367
|
+
if (methodName == "UNIFORM_BLOCK_BINDING") { return {0x8A3F}; }
|
|
368
|
+
if (methodName == "UNIFORM_BLOCK_DATA_SIZE") { return {0x8A40}; }
|
|
369
|
+
if (methodName == "UNIFORM_BLOCK_ACTIVE_UNIFORMS") { return {0x8A42}; }
|
|
370
|
+
if (methodName == "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES") { return {0x8A43}; }
|
|
371
|
+
|
|
372
|
+
if (methodName == "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER") { return {0x8A44}; }
|
|
373
|
+
if (methodName == "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER") { return {0x8A46}; }
|
|
374
|
+
if (methodName == "OBJECT_TYPE") { return {0x9112}; }
|
|
375
|
+
if (methodName == "SYNC_CONDITION") { return {0x9113}; }
|
|
376
|
+
if (methodName == "SYNC_STATUS") { return {0x9114}; }
|
|
377
|
+
|
|
378
|
+
if (methodName == "SYNC_FLAGS") { return {0x9115}; }
|
|
379
|
+
if (methodName == "SYNC_FENCE") { return {0x9116}; }
|
|
380
|
+
if (methodName == "SYNC_GPU_COMMANDS_COMPLETE") { return {0x9117}; }
|
|
381
|
+
if (methodName == "UNSIGNALED") { return {0x9118}; }
|
|
382
|
+
if (methodName == "SIGNALED") { return {0x9119}; }
|
|
383
|
+
|
|
384
|
+
/* Samplers */
|
|
385
|
+
|
|
386
|
+
/* Buffers */
|
|
387
|
+
|
|
388
|
+
if (methodName == "ALREADY_SIGNALED") { return {0x911A}; }
|
|
389
|
+
if (methodName == "TIMEOUT_EXPIRED") { return {0x911B}; }
|
|
390
|
+
if (methodName == "CONDITION_SATISFIED") { return {0x911C}; }
|
|
391
|
+
if (methodName == "WAIT_FAILED") { return {0x911D}; }
|
|
392
|
+
if (methodName == "SYNC_FLUSH_COMMANDS_BIT") { return {0x00000001}; }
|
|
393
|
+
|
|
394
|
+
if (methodName == "COLOR") { return {0x1800}; }
|
|
395
|
+
if (methodName == "DEPTH") { return {0x1801}; }
|
|
396
|
+
if (methodName == "STENCIL") { return {0x1802}; }
|
|
397
|
+
|
|
398
|
+
/* Buffers */
|
|
399
|
+
|
|
400
|
+
/* Data types */
|
|
401
|
+
|
|
402
|
+
if (methodName == "MIN") { return {0x8007}; }
|
|
403
|
+
if (methodName == "MAX") { return {0x8008}; }
|
|
404
|
+
if (methodName == "DEPTH_COMPONENT24") { return {0x81A6}; }
|
|
405
|
+
if (methodName == "STREAM_READ") { return {0x88E1}; }
|
|
406
|
+
if (methodName == "STREAM_COPY") { return {0x88E2}; }
|
|
407
|
+
|
|
408
|
+
if (methodName == "STATIC_READ") { return {0x88E5}; }
|
|
409
|
+
if (methodName == "STATIC_COPY") { return {0x88E6}; }
|
|
410
|
+
if (methodName == "DYNAMIC_READ") { return {0x88E9}; }
|
|
411
|
+
if (methodName == "DYNAMIC_COPY") { return {0x88EA}; }
|
|
412
|
+
if (methodName == "DEPTH_COMPONENT32F") { return {0x8CAC}; }
|
|
413
|
+
if (methodName == "DEPTH32F_STENCIL8") { return {0x8CAD}; }
|
|
414
|
+
|
|
415
|
+
/* Data types */
|
|
416
|
+
|
|
417
|
+
if (methodName == "INVALID_INDEX") { return {(double) 0xFFFFFFFF}; }
|
|
418
|
+
if (methodName == "TIMEOUT_IGNORED") { return {-1}; }
|
|
419
|
+
|
|
420
|
+
/* Vertex attributes */
|
|
421
|
+
|
|
422
|
+
/* Transform feedback */
|
|
423
|
+
|
|
424
|
+
if (methodName == "MAX_CLIENT_WAIT_TIMEOUT_WEBGL") { return {0x9247}; }
|
|
425
|
+
|
|
426
|
+
/* Transform feedback */
|
|
427
|
+
|
|
428
|
+
return jsi::Value::undefined();
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
};
|