@nativescript/canvas 2.0.0-webgpu.4 → 2.0.0-webgpu.40
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 +5 -10
- package/Canvas/common.js +61 -144
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +6 -5
- package/Canvas/index.android.js +63 -42
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +13 -3
- package/Canvas/index.ios.d.ts +9 -1
- package/Canvas/index.ios.js +117 -66
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas/utils.d.ts +3 -0
- package/Canvas/utils.js +85 -0
- package/Canvas/utils.js.map +1 -0
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +3 -1
- package/Canvas2D/CanvasRenderingContext2D/index.js +2 -4
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Dom/Group.d.ts +1 -2
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.js +0 -1
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +1 -1
- package/Dom/shapes/Path.d.ts +1 -1
- package/ImageAsset/index.d.ts +4 -2
- package/ImageAsset/index.js +151 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.js +107 -20
- package/ImageBitmap/index.js.map +1 -1
- package/README.md +2 -4
- package/WebGL/WebGLRenderingContext/common.d.ts +1 -1
- package/WebGL/WebGLRenderingContext/index.js +76 -32
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +5 -5
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/WebGPU/GPU.js +4 -3
- package/WebGPU/GPU.js.map +1 -1
- package/WebGPU/GPUAdapter.d.ts +6 -3
- package/WebGPU/GPUAdapter.js +31 -0
- package/WebGPU/GPUAdapter.js.map +1 -1
- package/WebGPU/GPUBindGroup.d.ts +1 -0
- package/WebGPU/GPUBindGroup.js +3 -0
- package/WebGPU/GPUBindGroup.js.map +1 -1
- package/WebGPU/GPUBindGroupLayout.d.ts +1 -0
- package/WebGPU/GPUBindGroupLayout.js +3 -0
- package/WebGPU/GPUBindGroupLayout.js.map +1 -1
- package/WebGPU/GPUBuffer.js +10 -2
- package/WebGPU/GPUBuffer.js.map +1 -1
- package/WebGPU/GPUCanvasContext.d.ts +5 -3
- package/WebGPU/GPUCanvasContext.js +52 -10
- package/WebGPU/GPUCanvasContext.js.map +1 -1
- package/WebGPU/GPUCommandBuffer.d.ts +1 -0
- package/WebGPU/GPUCommandBuffer.js +3 -0
- package/WebGPU/GPUCommandBuffer.js.map +1 -1
- package/WebGPU/GPUCommandEncoder.d.ts +3 -9
- package/WebGPU/GPUCommandEncoder.js +94 -41
- package/WebGPU/GPUCommandEncoder.js.map +1 -1
- package/WebGPU/GPUComputePassEncoder.d.ts +1 -0
- package/WebGPU/GPUComputePassEncoder.js +3 -0
- package/WebGPU/GPUComputePassEncoder.js.map +1 -1
- package/WebGPU/GPUComputePipeline.d.ts +1 -0
- package/WebGPU/GPUComputePipeline.js +3 -0
- package/WebGPU/GPUComputePipeline.js.map +1 -1
- package/WebGPU/GPUDevice.d.ts +17 -79
- package/WebGPU/GPUDevice.js +75 -91
- package/WebGPU/GPUDevice.js.map +1 -1
- package/WebGPU/GPUExternalTexture.d.ts +1 -0
- package/WebGPU/GPUExternalTexture.js +3 -0
- package/WebGPU/GPUExternalTexture.js.map +1 -1
- package/WebGPU/GPUPipelineLayout.d.ts +1 -0
- package/WebGPU/GPUPipelineLayout.js +3 -0
- package/WebGPU/GPUPipelineLayout.js.map +1 -1
- package/WebGPU/GPUQuerySet.d.ts +1 -0
- package/WebGPU/GPUQuerySet.js +3 -0
- package/WebGPU/GPUQuerySet.js.map +1 -1
- package/WebGPU/GPUQueue.d.ts +1 -0
- package/WebGPU/GPUQueue.js +65 -14
- package/WebGPU/GPUQueue.js.map +1 -1
- package/WebGPU/GPURenderBundle.d.ts +1 -0
- package/WebGPU/GPURenderBundle.js +3 -0
- package/WebGPU/GPURenderBundle.js.map +1 -1
- package/WebGPU/GPURenderBundleEncoder.d.ts +4 -2
- package/WebGPU/GPURenderBundleEncoder.js +7 -3
- package/WebGPU/GPURenderBundleEncoder.js.map +1 -1
- package/WebGPU/GPURenderPassEncoder.d.ts +5 -1
- package/WebGPU/GPURenderPassEncoder.js +14 -2
- package/WebGPU/GPURenderPassEncoder.js.map +1 -1
- package/WebGPU/GPURenderPipeline.d.ts +1 -0
- package/WebGPU/GPURenderPipeline.js +3 -0
- package/WebGPU/GPURenderPipeline.js.map +1 -1
- package/WebGPU/GPUSampler.d.ts +1 -0
- package/WebGPU/GPUSampler.js +3 -0
- package/WebGPU/GPUSampler.js.map +1 -1
- package/WebGPU/GPUShaderModule.d.ts +1 -1
- package/WebGPU/GPUShaderModule.js +2 -2
- package/WebGPU/GPUShaderModule.js.map +1 -1
- package/WebGPU/GPUTexture.d.ts +1 -0
- package/WebGPU/GPUTexture.js +3 -0
- package/WebGPU/GPUTexture.js.map +1 -1
- package/WebGPU/GPUTextureView.d.ts +1 -0
- package/WebGPU/GPUTextureView.js +3 -0
- package/WebGPU/GPUTextureView.js.map +1 -1
- package/WebGPU/Interfaces.d.ts +95 -4
- package/WebGPU/Types.d.ts +9 -1
- package/WebGPU/Utils.d.ts +6 -0
- package/WebGPU/Utils.js +226 -0
- package/WebGPU/Utils.js.map +1 -1
- package/angular/esm2022/index.mjs +4 -4
- package/angular/fesm2022/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2022/nativescript-canvas-angular.mjs.map +1 -1
- package/common.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -2
- package/index.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 +61 -30
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +1 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/NSCMTLView.h +32 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -176
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +342 -72
- 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 +7997 -5995
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +85 -23
- 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 +85 -23
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/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/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +681 -644
- 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 +122 -60
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +1 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/NSCMTLView.h +32 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -176
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +342 -72
- 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 +7997 -5995
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +85 -23
- 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 +85 -23
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +7997 -5995
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +85 -23
- 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 +85 -23
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +40 -29
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +683 -646
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +736 -684
- package/platforms/ios/src/NSOperationQueueWrapper.h +1 -1
- package/platforms/ios/src/NSOperationQueueWrapper.mm +41 -9
- package/platforms/ios/src/cpp/AsyncCallback.h +16 -8
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +310 -801
- package/platforms/ios/src/cpp/CanvasJSIModule.h +2 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +578 -413
- package/platforms/ios/src/cpp/ImageAssetImpl.h +7 -3
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +60 -3
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +10 -3
- package/platforms/ios/src/cpp/PromiseCallback.h +1 -2
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +7 -11
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +3 -3
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +5 -5
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +106 -1
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp +6 -6
- package/platforms/ios/src/cpp/webgpu/GPUAdapterImpl.cpp +26 -23
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupImpl.cpp +31 -5
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupImpl.h +4 -1
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupLayoutImpl.cpp +26 -0
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupLayoutImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUBufferImpl.cpp +41 -7
- package/platforms/ios/src/cpp/webgpu/GPUBufferImpl.h +4 -0
- package/platforms/ios/src/cpp/webgpu/GPUCanvasContextImpl.cpp +11 -5
- package/platforms/ios/src/cpp/webgpu/GPUCommandBufferImpl.cpp +28 -1
- package/platforms/ios/src/cpp/webgpu/GPUCommandBufferImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUCommandEncoderImpl.cpp +75 -79
- package/platforms/ios/src/cpp/webgpu/GPUCommandEncoderImpl.h +4 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePassEncoderImpl.cpp +56 -23
- package/platforms/ios/src/cpp/webgpu/GPUComputePassEncoderImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePipelineImpl.cpp +25 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePipelineImpl.h +2 -0
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.cpp +1606 -681
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.h +2 -0
- package/platforms/ios/src/cpp/webgpu/GPUImpl.cpp +2 -1
- package/platforms/ios/src/cpp/webgpu/GPUImpl.h +1 -1
- package/platforms/ios/src/cpp/webgpu/GPULabel.h +33 -0
- package/platforms/ios/src/cpp/webgpu/GPUPipelineLayoutImpl.cpp +26 -0
- package/platforms/ios/src/cpp/webgpu/GPUPipelineLayoutImpl.h +3 -1
- package/platforms/ios/src/cpp/webgpu/GPUQuerySetImpl.cpp +1 -2
- package/platforms/ios/src/cpp/webgpu/GPUQuerySetImpl.h +1 -1
- package/platforms/ios/src/cpp/webgpu/GPUQueueImpl.cpp +83 -14
- package/platforms/ios/src/cpp/webgpu/GPUQueueImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleEncoderImpl.cpp +66 -34
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleEncoderImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleImpl.cpp +25 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.cpp +151 -52
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.h +7 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPipelineImpl.cpp +25 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPipelineImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUSamplerImpl.cpp +26 -0
- package/platforms/ios/src/cpp/webgpu/GPUSamplerImpl.h +4 -1
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.cpp +24 -0
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureImpl.cpp +34 -8
- package/platforms/ios/src/cpp/webgpu/GPUTextureImpl.h +2 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureViewImpl.cpp +26 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureViewImpl.h +3 -0
- package/platforms/ios/src/cpp/webgpu/GPUUtils.h +511 -0
- package/utils.d.ts +1 -1
|
@@ -8,189 +8,107 @@
|
|
|
8
8
|
#include <stdint.h>
|
|
9
9
|
#include <stdlib.h>
|
|
10
10
|
|
|
11
|
-
long long
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
long long canvas_native_ios_create_webgl_context(void *view,
|
|
12
|
+
bool alpha,
|
|
13
|
+
bool antialias,
|
|
14
|
+
bool depth,
|
|
15
|
+
bool fail_if_major_performance_caveat,
|
|
16
|
+
int32_t power_preference,
|
|
17
|
+
bool premultiplied_alpha,
|
|
18
|
+
bool preserve_drawing_buffer,
|
|
19
|
+
bool stencil,
|
|
20
|
+
bool desynchronized,
|
|
21
|
+
bool xr_compatible,
|
|
22
|
+
uint32_t version);
|
|
23
|
+
|
|
24
|
+
bool canvas_native_ios_flush_webgl(int64_t context);
|
|
15
25
|
|
|
16
|
-
|
|
17
|
-
long long canvas_native_init_ios_webgpu_uiview(int64_t instance,
|
|
18
|
-
int64_t view,
|
|
19
|
-
uint32_t width,
|
|
20
|
-
uint32_t height);
|
|
21
|
-
#endif
|
|
26
|
+
void canvas_native_ios_flush_2d_context(int64_t context);
|
|
22
27
|
|
|
23
|
-
|
|
24
|
-
bool alpha,
|
|
25
|
-
bool antialias,
|
|
26
|
-
bool depth,
|
|
27
|
-
bool fail_if_major_performance_caveat,
|
|
28
|
-
int32_t power_preference,
|
|
29
|
-
bool premultiplied_alpha,
|
|
30
|
-
bool preserve_drawing_buffer,
|
|
31
|
-
bool stencil,
|
|
32
|
-
bool desynchronized,
|
|
33
|
-
bool xr_compatible,
|
|
34
|
-
int32_t version,
|
|
35
|
-
bool is_canvas);
|
|
36
|
-
|
|
37
|
-
long long canvas_native_init_ios_gl_with_shared_gl(int64_t view,
|
|
38
|
-
bool alpha,
|
|
39
|
-
bool antialias,
|
|
40
|
-
bool depth,
|
|
41
|
-
bool fail_if_major_performance_caveat,
|
|
42
|
-
int32_t power_preference,
|
|
43
|
-
bool premultiplied_alpha,
|
|
44
|
-
bool preserve_drawing_buffer,
|
|
45
|
-
bool stencil,
|
|
46
|
-
bool desynchronized,
|
|
47
|
-
bool xr_compatible,
|
|
48
|
-
int32_t version,
|
|
49
|
-
bool is_canvas,
|
|
50
|
-
int64_t shared_context);
|
|
51
|
-
|
|
52
|
-
long long canvas_native_init_offscreen_ios_gl(int32_t width,
|
|
53
|
-
int32_t height,
|
|
54
|
-
bool alpha,
|
|
55
|
-
bool antialias,
|
|
56
|
-
bool depth,
|
|
57
|
-
bool fail_if_major_performance_caveat,
|
|
58
|
-
int32_t power_preference,
|
|
59
|
-
bool premultiplied_alpha,
|
|
60
|
-
bool preserve_drawing_buffer,
|
|
61
|
-
bool stencil,
|
|
62
|
-
bool desynchronized,
|
|
63
|
-
bool xr_compatible,
|
|
64
|
-
int32_t version,
|
|
65
|
-
bool is_canvas);
|
|
66
|
-
|
|
67
|
-
long long canvas_native_init_offscreen_ios_gl_with_shared_gl(int32_t width,
|
|
68
|
-
int32_t height,
|
|
69
|
-
bool alpha,
|
|
70
|
-
bool antialias,
|
|
71
|
-
bool depth,
|
|
72
|
-
bool fail_if_major_performance_caveat,
|
|
73
|
-
int32_t power_preference,
|
|
74
|
-
bool premultiplied_alpha,
|
|
75
|
-
bool preserve_drawing_buffer,
|
|
76
|
-
bool stencil,
|
|
77
|
-
bool desynchronized,
|
|
78
|
-
bool xr_compatible,
|
|
79
|
-
int32_t version,
|
|
80
|
-
bool is_canvas,
|
|
81
|
-
int64_t shared_context);
|
|
82
|
-
|
|
83
|
-
bool canvas_native_ios_flush_gl(int64_t context);
|
|
28
|
+
void canvas_native_ios_present_drawable(int64_t context);
|
|
84
29
|
|
|
85
|
-
void
|
|
30
|
+
void canvas_native_ios_flush_2d_context_and_sync_cpu(int64_t context);
|
|
31
|
+
|
|
32
|
+
void canvas_native_ios_resize_context_2d(int64_t context, float width, float height);
|
|
33
|
+
|
|
34
|
+
int64_t canvas_native_ios_create_2d_context(void *view,
|
|
35
|
+
int32_t width,
|
|
36
|
+
int32_t height,
|
|
37
|
+
bool alpha,
|
|
38
|
+
float density,
|
|
39
|
+
int32_t font_color,
|
|
40
|
+
float ppi,
|
|
41
|
+
int32_t direction);
|
|
42
|
+
|
|
43
|
+
void canvas_native_ios_update_webgl_surface(int64_t view,
|
|
44
|
+
int32_t _width,
|
|
45
|
+
int32_t _height,
|
|
46
|
+
int64_t context);
|
|
47
|
+
|
|
48
|
+
void canvas_native_ios_release_webgl(int64_t context);
|
|
49
|
+
|
|
50
|
+
void canvas_native_ios_gl_make_current(int64_t context);
|
|
51
|
+
|
|
52
|
+
bool canvas_native_ios_image_asset_load_from_bytes(int64_t asset, uint8_t *bytes, uintptr_t size);
|
|
86
53
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
void canvas_native_context_2d_test(int64_t context);
|
|
108
|
-
|
|
109
|
-
void canvas_native_gl_make_current(int64_t gl_context);
|
|
110
|
-
|
|
111
|
-
char *canvas_native_context_2d_test_to_data_url(int64_t context);
|
|
112
|
-
|
|
113
|
-
void canvas_native_context_2d_destroy_string(char *string);
|
|
114
|
-
|
|
115
|
-
bool canvas_native_imageasset_load_from_bytes(int64_t asset, uint8_t *bytes, uintptr_t size);
|
|
116
|
-
|
|
117
|
-
int64_t canvas_native_context_create_pattern_raw(int64_t context,
|
|
118
|
-
int32_t width,
|
|
119
|
-
int32_t height,
|
|
120
|
-
uint8_t *bytes,
|
|
121
|
-
uintptr_t size,
|
|
122
|
-
const char *repetition);
|
|
123
|
-
|
|
124
|
-
bool canvas_native_context_draw_image_dx_dy_with_bytes(int64_t context,
|
|
125
|
-
uint8_t *bytes,
|
|
126
|
-
uintptr_t size,
|
|
127
|
-
float width,
|
|
128
|
-
float height,
|
|
129
|
-
float dx,
|
|
130
|
-
float dy);
|
|
131
|
-
|
|
132
|
-
bool canvas_native_context_draw_image_dx_dy_dw_dh_with_bytes(int64_t context,
|
|
133
|
-
uint8_t *bytes,
|
|
134
|
-
uintptr_t size,
|
|
135
|
-
float width,
|
|
136
|
-
float height,
|
|
137
|
-
float dx,
|
|
138
|
-
float dy,
|
|
139
|
-
float d_width,
|
|
140
|
-
float d_height);
|
|
141
|
-
|
|
142
|
-
bool canvas_native_context_draw_image_with_bytes(int64_t context,
|
|
143
|
-
uint8_t *bytes,
|
|
144
|
-
uintptr_t size,
|
|
145
|
-
float width,
|
|
146
|
-
float height,
|
|
147
|
-
float sx,
|
|
148
|
-
float sy,
|
|
149
|
-
float s_width,
|
|
150
|
-
float s_height,
|
|
151
|
-
float dx,
|
|
152
|
-
float dy,
|
|
153
|
-
float d_width,
|
|
154
|
-
float d_height);
|
|
155
|
-
|
|
156
|
-
void canvas_native_context_custom_with_buffer_flush(int64_t context,
|
|
157
|
-
uint8_t *bytes,
|
|
158
|
-
uintptr_t size,
|
|
159
|
-
float width,
|
|
160
|
-
float height,
|
|
161
|
-
bool alpha);
|
|
162
|
-
|
|
163
|
-
long long canvas_native_context_init_context_with_custom_surface(float width,
|
|
54
|
+
int64_t canvas_native_ios_context_create_pattern_raw(int64_t context,
|
|
55
|
+
int32_t width,
|
|
56
|
+
int32_t height,
|
|
57
|
+
uint8_t *bytes,
|
|
58
|
+
uintptr_t size,
|
|
59
|
+
const char *repetition);
|
|
60
|
+
|
|
61
|
+
bool canvas_native_ios_context_draw_image_dx_dy_with_bytes(int64_t context,
|
|
62
|
+
uint8_t *bytes,
|
|
63
|
+
uintptr_t size,
|
|
64
|
+
float width,
|
|
65
|
+
float height,
|
|
66
|
+
float dx,
|
|
67
|
+
float dy);
|
|
68
|
+
|
|
69
|
+
bool canvas_native_ios_context_draw_image_dx_dy_dw_dh_with_bytes(int64_t context,
|
|
70
|
+
uint8_t *bytes,
|
|
71
|
+
uintptr_t size,
|
|
72
|
+
float width,
|
|
164
73
|
float height,
|
|
165
|
-
float
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
float
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
74
|
+
float dx,
|
|
75
|
+
float dy,
|
|
76
|
+
float d_width,
|
|
77
|
+
float d_height);
|
|
78
|
+
|
|
79
|
+
bool canvas_native_ios_context_draw_image_with_bytes(int64_t context,
|
|
80
|
+
uint8_t *bytes,
|
|
81
|
+
uintptr_t size,
|
|
82
|
+
float width,
|
|
83
|
+
float height,
|
|
84
|
+
float sx,
|
|
85
|
+
float sy,
|
|
86
|
+
float s_width,
|
|
87
|
+
float s_height,
|
|
88
|
+
float dx,
|
|
89
|
+
float dy,
|
|
90
|
+
float d_width,
|
|
91
|
+
float d_height);
|
|
92
|
+
|
|
93
|
+
void canvas_native_ios_context_custom_with_buffer_flush(int64_t context,
|
|
94
|
+
uint8_t *bytes,
|
|
95
|
+
uintptr_t size,
|
|
96
|
+
float width,
|
|
97
|
+
float height,
|
|
98
|
+
bool alpha);
|
|
99
|
+
|
|
100
|
+
long long canvas_native_ios_context_init_context_with_custom_surface(float width,
|
|
101
|
+
float height,
|
|
102
|
+
float density,
|
|
103
|
+
bool alpha,
|
|
104
|
+
int font_color,
|
|
105
|
+
float ppi,
|
|
106
|
+
int direction);
|
|
107
|
+
|
|
108
|
+
void canvas_native_ios_webgl_tex_image_2d(int64_t context,
|
|
190
109
|
int32_t target,
|
|
191
110
|
int32_t level,
|
|
192
|
-
int32_t
|
|
193
|
-
int32_t yoffset,
|
|
111
|
+
int32_t internalformat,
|
|
194
112
|
int32_t format,
|
|
195
113
|
int32_t type_,
|
|
196
114
|
uint8_t *bytes,
|
|
@@ -199,4 +117,54 @@ void canvas_native_webgl_tex_sub_image_2d(int64_t context,
|
|
|
199
117
|
float height,
|
|
200
118
|
bool flip_y);
|
|
201
119
|
|
|
120
|
+
void canvas_native_ios_webgl_tex_sub_image_2d(int64_t context,
|
|
121
|
+
int32_t target,
|
|
122
|
+
int32_t level,
|
|
123
|
+
int32_t xoffset,
|
|
124
|
+
int32_t yoffset,
|
|
125
|
+
int32_t format,
|
|
126
|
+
int32_t type_,
|
|
127
|
+
uint8_t *bytes,
|
|
128
|
+
uintptr_t size,
|
|
129
|
+
float width,
|
|
130
|
+
float height,
|
|
131
|
+
bool flip_y);
|
|
132
|
+
|
|
133
|
+
int64_t canvas_native_ios_create_2d_context_metal(void *view,
|
|
134
|
+
bool alpha,
|
|
135
|
+
float density,
|
|
136
|
+
uintptr_t samples,
|
|
137
|
+
int32_t font_color,
|
|
138
|
+
float ppi,
|
|
139
|
+
int32_t direction);
|
|
140
|
+
|
|
141
|
+
int64_t canvas_native_ios_create_2d_context_metal_device_queue(void *view,
|
|
142
|
+
void *device,
|
|
143
|
+
void *queue,
|
|
144
|
+
bool alpha,
|
|
145
|
+
float density,
|
|
146
|
+
uintptr_t samples,
|
|
147
|
+
int32_t font_color,
|
|
148
|
+
float ppi,
|
|
149
|
+
int32_t direction);
|
|
150
|
+
|
|
151
|
+
long long canvas_native_init_ios_webgpu(int64_t instance,
|
|
152
|
+
void *view,
|
|
153
|
+
uint32_t width,
|
|
154
|
+
uint32_t height);
|
|
155
|
+
|
|
156
|
+
#if defined(TARGET_OS_MACOS)
|
|
157
|
+
long long canvas_native_init_ios_webgpu_nsview(int64_t instance,
|
|
158
|
+
void *view,
|
|
159
|
+
uint32_t width,
|
|
160
|
+
uint32_t height);
|
|
161
|
+
#endif
|
|
162
|
+
|
|
163
|
+
#if defined(TARGET_OS_IOS)
|
|
164
|
+
void canvas_native_resize_ios_webgpu_uiview(int64_t context,
|
|
165
|
+
void *view,
|
|
166
|
+
uint32_t width,
|
|
167
|
+
uint32_t height);
|
|
168
|
+
#endif
|
|
169
|
+
|
|
202
170
|
#endif /* CANVAS_IOS_H */
|