@nativescript/canvas 2.0.0-webgpu.39 → 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/WebGPU/Utils.js +6 -4
- package/WebGPU/Utils.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/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +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 +127 -127
- 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/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/_CodeSignature/CodeResources +4 -4
- 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 +671 -671
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +732 -732
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.cpp +3 -1
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.cpp +23 -20
|
@@ -1501,6 +1501,7 @@ void GPUDeviceImpl::CreateRenderPipeline(const v8::FunctionCallbackInfo<v8::Valu
|
|
|
1501
1501
|
if (hasFragment && fragmentValue->IsObject()) {
|
|
1502
1502
|
auto fragmentValueObj = fragmentValue.As<v8::Object>();
|
|
1503
1503
|
fragment = new CanvasFragmentState{};
|
|
1504
|
+
fragment->entry_point = nullptr;
|
|
1504
1505
|
|
|
1505
1506
|
v8::Local<v8::Value> targetsVal;
|
|
1506
1507
|
fragmentValueObj->Get(context, ConvertToV8String(isolate, "targets")).ToLocal(&targetsVal);
|
|
@@ -2143,7 +2144,6 @@ void GPUDeviceImpl::CreateRenderPipeline(const v8::FunctionCallbackInfo<v8::Valu
|
|
|
2143
2144
|
}
|
|
2144
2145
|
|
|
2145
2146
|
|
|
2146
|
-
|
|
2147
2147
|
auto pipeline = canvas_native_webgpu_device_create_render_pipeline(ptr->GetGPUDevice(),
|
|
2148
2148
|
&descriptor);
|
|
2149
2149
|
|
|
@@ -2420,6 +2420,7 @@ void GPUDeviceImpl::CreateRenderPipelineAsync(const v8::FunctionCallbackInfo<v8:
|
|
|
2420
2420
|
if (!fragmentValue.IsEmpty() && fragmentValue->IsObject()) {
|
|
2421
2421
|
auto fragmentValueObj = fragmentValue.As<v8::Object>();
|
|
2422
2422
|
fragment = new CanvasFragmentState{};
|
|
2423
|
+
fragment->entry_point = nullptr;
|
|
2423
2424
|
|
|
2424
2425
|
v8::Local<v8::Value> targetsVal;
|
|
2425
2426
|
fragmentValueObj->Get(context, ConvertToV8String(isolate, "targets")).ToLocal(&targetsVal);
|
|
@@ -2899,6 +2900,7 @@ void GPUDeviceImpl::CreateRenderPipelineAsync(const v8::FunctionCallbackInfo<v8:
|
|
|
2899
2900
|
if (!vertexValue.IsEmpty() && vertexValue->IsObject()) {
|
|
2900
2901
|
auto vertexObj = vertexValue.As<v8::Object>();
|
|
2901
2902
|
vertex = new CanvasVertexState{};
|
|
2903
|
+
vertex->entry_point = nullptr;
|
|
2902
2904
|
|
|
2903
2905
|
v8::Local<v8::Value> moduleVal;
|
|
2904
2906
|
vertexObj->Get(context, ConvertToV8String(isolate, "module")).ToLocal(&moduleVal);
|
|
@@ -692,29 +692,32 @@ void GPURenderPassEncoderImpl::SetViewport(const v8::FunctionCallbackInfo<v8::Va
|
|
|
692
692
|
return;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
auto
|
|
696
|
-
auto
|
|
697
|
-
auto
|
|
698
|
-
auto
|
|
695
|
+
auto xVal = args[0];
|
|
696
|
+
auto yVal = args[1];
|
|
697
|
+
auto widthVal = args[2];
|
|
698
|
+
auto heightVal = args[3];
|
|
699
699
|
|
|
700
|
-
auto
|
|
701
|
-
auto
|
|
700
|
+
auto minDepthVal = args[4];
|
|
701
|
+
auto maxDepthVal = args[5];
|
|
702
702
|
|
|
703
703
|
auto isolate = args.GetIsolate();
|
|
704
704
|
auto context = isolate->GetCurrentContext();
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
(float)
|
|
710
|
-
|
|
711
|
-
(float)
|
|
712
|
-
|
|
713
|
-
(float)
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
auto x = (float) xVal->NumberValue(
|
|
708
|
+
context).FromJust();
|
|
709
|
+
auto y = (float) yVal->NumberValue(
|
|
710
|
+
context).FromJust();
|
|
711
|
+
auto width = (float) widthVal->NumberValue(
|
|
712
|
+
context).FromJust();
|
|
713
|
+
auto height = (float) heightVal->NumberValue(
|
|
714
|
+
context).FromJust();
|
|
715
|
+
|
|
716
|
+
auto minDepth = (float) minDepthVal->NumberValue(
|
|
717
|
+
context).FromJust();
|
|
718
|
+
auto maxDepth = (float) maxDepthVal->NumberValue(
|
|
719
|
+
context).FromJust();
|
|
720
|
+
|
|
721
|
+
canvas_native_webgpu_render_pass_encoder_set_viewport(ptr->GetPass(),x,y,width,height, minDepth, maxDepth);
|
|
719
722
|
|
|
720
723
|
}
|