@shopify/react-native-skia 2.6.2 → 2.6.3-next.2
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/android/CMakeLists.txt +8 -4
- package/android/build.gradle +22 -3
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +62 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerDelegate.java +35 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerInterface.java +17 -0
- package/apple/RNSkApplePlatformContext.h +2 -0
- package/apple/RNSkApplePlatformContext.mm +71 -0
- package/apple/RNWebGPUAppleNativeBuffer.mm +33 -0
- package/cpp/api/JsiNativeBuffer.h +9 -1
- package/cpp/api/JsiSkAnimatedImage.h +1 -1
- package/cpp/api/JsiSkAnimatedImageFactory.h +1 -1
- package/cpp/api/JsiSkApi.h +3 -3
- package/cpp/api/JsiSkCanvas.h +34 -1
- package/cpp/api/JsiSkColor.h +1 -1
- package/cpp/api/JsiSkDataFactory.h +2 -2
- package/cpp/api/JsiSkFont.h +1 -1
- package/cpp/api/JsiSkFontMgr.h +1 -1
- package/cpp/api/JsiSkHostObjects.h +3 -3
- package/cpp/api/JsiSkImage.h +15 -7
- package/cpp/api/JsiSkImageFactory.h +2 -2
- package/cpp/api/JsiSkPath.h +1 -1
- package/cpp/api/JsiSkPathFactory.h +1 -1
- package/cpp/api/JsiSkSkottie.h +1 -1
- package/cpp/api/JsiSkSurface.h +18 -6
- package/cpp/api/JsiSkTypeface.h +1 -1
- package/cpp/api/JsiSkTypefaceFontProvider.h +1 -1
- package/cpp/api/JsiSkiaContext.h +2 -2
- package/cpp/api/JsiTextureInfo.h +1 -1
- package/cpp/api/JsiVideo.h +2 -2
- package/cpp/api/recorder/Convertor.h +1 -1
- package/cpp/api/recorder/Drawings.h +1 -1
- package/cpp/api/recorder/JsiRecorder.h +4 -4
- package/cpp/api/recorder/RNRecorder.h +1 -1
- package/cpp/api/third_party/SkottieUtils.cpp +1 -1
- package/cpp/api/third_party/base64.cpp +1 -1
- package/cpp/jsi/JsiHostObject.cpp +5 -7
- package/cpp/jsi/JsiPromises.h +1 -1
- package/cpp/jsi/ViewProperty.h +1 -1
- package/cpp/rnskia/RNDawnContext.h +13 -0
- package/cpp/rnskia/RNDawnUtils.h +11 -1
- package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
- package/cpp/rnskia/RNSkManager.cpp +88 -2
- package/cpp/rnskia/RNSkPictureView.h +4 -4
- package/cpp/rnskia/RNSkPlatformContext.h +7 -0
- package/cpp/rnskia/RNSkView.h +9 -6
- package/cpp/rnwgpu/ArrayBuffer.h +51 -7
- package/cpp/rnwgpu/api/AppleNativeBuffer.h +22 -0
- package/cpp/rnwgpu/api/Convertors.h +33 -11
- package/cpp/rnwgpu/api/GPU.cpp +0 -3
- package/cpp/rnwgpu/api/GPUAdapter.cpp +37 -7
- package/cpp/rnwgpu/api/GPUBuffer.h +1 -1
- package/cpp/rnwgpu/api/GPUDevice.cpp +84 -6
- package/cpp/rnwgpu/api/GPUDevice.h +12 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.cpp +139 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.h +52 -2
- package/cpp/rnwgpu/api/GPUQueue.cpp +50 -45
- package/cpp/rnwgpu/api/GPUShaderModule.cpp +1 -1
- package/cpp/rnwgpu/api/GPUSharedFence.cpp +80 -0
- package/cpp/rnwgpu/api/GPUSharedFence.h +53 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.cpp +135 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.h +75 -0
- package/cpp/rnwgpu/api/ImageBitmap.h +62 -0
- package/cpp/rnwgpu/api/NativeBufferUtils.h +87 -0
- package/cpp/rnwgpu/api/descriptors/GPUBindGroupEntry.h +4 -1
- package/cpp/rnwgpu/api/descriptors/GPUCanvasConfiguration.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUDawnTogglesDescriptor.h +56 -0
- package/cpp/rnwgpu/api/descriptors/GPUDeviceDescriptor.h +10 -0
- package/cpp/rnwgpu/api/descriptors/GPUExternalTextureDescriptor.h +43 -24
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyExternalImage.h +9 -9
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTexture.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTextureTagged.h +2 -2
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceDescriptor.h +58 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceState.h +51 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedTextureMemoryDescriptor.h +73 -0
- package/cpp/rnwgpu/api/descriptors/GPUTextureDescriptor.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUUncapturedErrorEventInit.h +1 -1
- package/cpp/skia/include/android/GrAHardwareBufferUtils.h +1 -1
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +1 -1
- package/cpp/skia/include/android/SkAnimatedImage.h +1 -1
- package/cpp/skia/include/codec/SkCodec.h +0 -8
- package/cpp/skia/include/codec/SkEncodedOrigin.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +2 -8
- package/cpp/skia/include/core/SkCPURecorder.h +3 -1
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +1 -1
- package/cpp/skia/include/core/SkColorType.h +5 -3
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkCoverageMode.h +1 -1
- package/cpp/skia/include/core/SkCubicMap.h +1 -1
- package/cpp/skia/include/core/SkExecutor.h +1 -1
- package/cpp/skia/include/core/SkFont.h +15 -0
- package/cpp/skia/include/core/SkFontArguments.h +6 -1
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +36 -1
- package/cpp/skia/include/core/SkFontParameters.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +1 -1
- package/cpp/skia/include/core/SkFontTypes.h +1 -1
- package/cpp/skia/include/core/SkM44.h +1 -1
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/include/core/SkPathBuilder.h +10 -4
- package/cpp/skia/include/core/SkPathIter.h +1 -1
- package/cpp/skia/include/core/SkPathTypes.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +4 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -1
- package/cpp/skia/include/core/SkRegion.h +17 -6
- package/cpp/skia/include/core/SkSamplingOptions.h +1 -1
- package/cpp/skia/include/core/SkSerialProcs.h +8 -1
- package/cpp/skia/include/core/SkShader.h +3 -5
- package/cpp/skia/include/core/SkSpan.h +1 -1
- package/cpp/skia/include/core/SkStream.h +1 -1
- package/cpp/skia/include/core/SkStrikeRef.h +80 -0
- package/cpp/skia/include/core/SkTileMode.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +3 -5
- package/cpp/skia/include/docs/SkPDFDocument.h +1 -1
- package/cpp/skia/include/docs/SkXPSDocument.h +1 -1
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkHighContrastFilter.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +2 -2
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +1 -1
- package/cpp/skia/include/effects/SkTrimPathEffect.h +1 -1
- package/cpp/skia/include/encode/SkEncoder.h +1 -1
- package/cpp/skia/include/encode/SkJpegEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngRustEncoder.h +1 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +2 -0
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +6 -62
- package/cpp/skia/include/gpu/ganesh/GrContextThreadSafeProxy.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +2 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +59 -0
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +1 -1
- package/cpp/skia/include/gpu/graphite/Context.h +12 -5
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +6 -0
- package/cpp/skia/include/gpu/graphite/Image.h +82 -9
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +7 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +6 -4
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileColorFilter.h +11 -1
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileShader.h +1 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/ports/SkCFObject.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_android_ndk.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_data.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_FreeType.h +1 -1
- package/cpp/skia/include/ports/SkTypeface_fontations.h +1 -1
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/SkGainmapInfo.h +1 -1
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +21 -0
- package/cpp/skia/include/private/SkJpegGainmapEncoder.h +1 -1
- package/cpp/skia/include/private/SkPixelStorage.h +37 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/base/SkAssert.h +6 -5
- package/cpp/skia/include/private/base/SkContainers.h +1 -1
- package/cpp/skia/include/private/base/SkFeatures.h +30 -30
- package/cpp/skia/include/private/base/SkLog.h +1 -7
- package/cpp/skia/include/private/base/SkLogPriority.h +4 -5
- package/cpp/skia/include/private/base/SkMacros.h +1 -1
- package/cpp/skia/include/private/base/SkMalloc.h +1 -1
- package/cpp/skia/include/private/base/SkSafe32.h +1 -1
- package/cpp/skia/include/private/base/SkSpan_impl.h +1 -1
- package/cpp/skia/include/private/base/SkTDArray.h +13 -1
- package/cpp/skia/include/private/base/SkTPin.h +1 -1
- package/cpp/skia/include/private/base/SkTo.h +1 -1
- package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +52 -0
- package/cpp/skia/include/private/chromium/SkExifChromium.h +26 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +2 -1
- package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +1 -1
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_icd.h +41 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_layer.h +42 -53
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +2 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std.h +158 -154
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_decode.h +68 -65
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_encode.h +90 -87
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std.h +9 -9
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_encode.h +82 -79
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std.h +24 -24
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_encode.h +95 -96
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std.h +151 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std_decode.h +68 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codecs_common.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +7 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_beta.h +291 -158
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +13174 -10113
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_directfb.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_fuchsia.h +159 -165
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ggp.h +22 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_metal.h +94 -88
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ohos.h +120 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_screen.h +55 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_vi.h +18 -15
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_wayland.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +31 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib.h +27 -27
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib_xrandr.h +20 -16
- package/cpp/skia/include/utils/SkEventTracer.h +6 -1
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +1 -1
- package/cpp/skia/include/utils/SkShadowUtils.h +1 -1
- package/cpp/skia/include/utils/SkTextUtils.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +20 -4
- package/cpp/skia/modules/skcms/src/Transform_inl.h +11 -15
- package/cpp/skia/modules/skcms/src/skcms_public.h +2 -0
- package/cpp/skia/modules/skottie/include/ExternalLayer.h +1 -1
- package/cpp/skia/modules/skottie/include/Skottie.h +1 -1
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +1 -1
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/SkottieValue.h +1 -1
- package/cpp/skia/modules/skottie/src/animator/Animator.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAdapter.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAnimator.h +3 -2
- package/cpp/skia/modules/skottie/src/text/TextValue.h +1 -1
- package/cpp/skia/modules/skparagraph/include/DartTypes.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontArguments.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontCollection.h +5 -1
- package/cpp/skia/modules/skparagraph/include/Metrics.h +1 -1
- package/cpp/skia/modules/skparagraph/include/Paragraph.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphPainter.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphStyle.h +12 -5
- package/cpp/skia/modules/skparagraph/include/TextShadow.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGClipEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGColorFilter.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGDraw.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGEffectNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGradient.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGroup.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGImage.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGInvalidationController.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMaskEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMerge.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGOpacityEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPaint.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPath.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPlane.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGScene.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGText.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGTransform.h +1 -1
- package/cpp/skia/modules/skshaper/include/SkShaper_coretext.h +8 -1
- package/cpp/skia/modules/svg/include/SkSVGFe.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/src/base/SkAutoLocaleSetter.h +94 -0
- package/cpp/skia/src/base/SkUTF.h +1 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/types/WebGPU.d.ts +153 -0
- package/lib/commonjs/skia/types/WebGPU.js +6 -0
- package/lib/commonjs/skia/types/WebGPU.js.map +1 -0
- package/lib/commonjs/skia/types/index.d.ts +1 -0
- package/lib/commonjs/skia/types/index.js +11 -0
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/module/skia/types/WebGPU.d.ts +153 -0
- package/lib/module/skia/types/WebGPU.js +2 -0
- package/lib/module/skia/types/WebGPU.js.map +1 -0
- package/lib/module/skia/types/index.d.ts +1 -0
- package/lib/module/skia/types/index.js +1 -0
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +1 -2
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/typescript/lib/commonjs/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/typescript/src/skia/types/WebGPU.d.ts +153 -0
- package/lib/typescript/src/skia/types/index.d.ts +1 -0
- package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/package.json +18 -15
- package/react-native-skia.podspec +59 -7
- package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +10 -1
- package/src/skia/types/WebGPU.ts +186 -0
- package/src/skia/types/index.ts +1 -0
- package/src/skia/web/JsiSkNativeBufferFactory.ts +20 -0
- package/src/skia/web/JsiSkPath.ts +8 -2
- package/scripts/install-libs.js +0 -133
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_METAL_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
**
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
#ifdef __cplusplus
|
|
16
17
|
extern "C" {
|
|
17
18
|
#endif
|
|
18
19
|
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
// VK_EXT_metal_surface is a preprocessor guard. Do not pass it to API calls.
|
|
20
23
|
#define VK_EXT_metal_surface 1
|
|
21
24
|
#ifdef __OBJC__
|
|
@@ -28,25 +31,24 @@ typedef void CAMetalLayer;
|
|
|
28
31
|
#define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
|
|
29
32
|
typedef VkFlags VkMetalSurfaceCreateFlagsEXT;
|
|
30
33
|
typedef struct VkMetalSurfaceCreateInfoEXT {
|
|
31
|
-
VkStructureType
|
|
32
|
-
const void*
|
|
33
|
-
VkMetalSurfaceCreateFlagsEXT
|
|
34
|
-
const CAMetalLayer*
|
|
34
|
+
VkStructureType sType;
|
|
35
|
+
const void* pNext;
|
|
36
|
+
VkMetalSurfaceCreateFlagsEXT flags;
|
|
37
|
+
const CAMetalLayer* pLayer;
|
|
35
38
|
} VkMetalSurfaceCreateInfoEXT;
|
|
36
39
|
|
|
37
|
-
typedef VkResult(VKAPI_PTR*
|
|
38
|
-
VkInstance instance,
|
|
39
|
-
const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
|
|
40
|
-
const VkAllocationCallbacks* pAllocator,
|
|
41
|
-
VkSurfaceKHR* pSurface);
|
|
40
|
+
typedef VkResult (VKAPI_PTR *PFN_vkCreateMetalSurfaceEXT)(VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
42
41
|
|
|
43
42
|
#ifndef VK_NO_PROTOTYPES
|
|
44
|
-
|
|
45
|
-
vkCreateMetalSurfaceEXT(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
44
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(
|
|
45
|
+
VkInstance instance,
|
|
46
|
+
const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
|
|
47
|
+
const VkAllocationCallbacks* pAllocator,
|
|
48
|
+
VkSurfaceKHR* pSurface);
|
|
49
49
|
#endif
|
|
50
|
+
#endif
|
|
51
|
+
|
|
50
52
|
|
|
51
53
|
// VK_EXT_metal_objects is a preprocessor guard. Do not pass it to API calls.
|
|
52
54
|
#define VK_EXT_metal_objects 1
|
|
@@ -100,135 +102,139 @@ typedef enum VkExportMetalObjectTypeFlagBitsEXT {
|
|
|
100
102
|
} VkExportMetalObjectTypeFlagBitsEXT;
|
|
101
103
|
typedef VkFlags VkExportMetalObjectTypeFlagsEXT;
|
|
102
104
|
typedef struct VkExportMetalObjectCreateInfoEXT {
|
|
103
|
-
VkStructureType
|
|
104
|
-
const void*
|
|
105
|
-
VkExportMetalObjectTypeFlagBitsEXT
|
|
105
|
+
VkStructureType sType;
|
|
106
|
+
const void* pNext;
|
|
107
|
+
VkExportMetalObjectTypeFlagBitsEXT exportObjectType;
|
|
106
108
|
} VkExportMetalObjectCreateInfoEXT;
|
|
107
109
|
|
|
108
110
|
typedef struct VkExportMetalObjectsInfoEXT {
|
|
109
|
-
VkStructureType
|
|
110
|
-
const void*
|
|
111
|
+
VkStructureType sType;
|
|
112
|
+
const void* pNext;
|
|
111
113
|
} VkExportMetalObjectsInfoEXT;
|
|
112
114
|
|
|
113
115
|
typedef struct VkExportMetalDeviceInfoEXT {
|
|
114
|
-
VkStructureType
|
|
115
|
-
const void*
|
|
116
|
-
MTLDevice_id
|
|
116
|
+
VkStructureType sType;
|
|
117
|
+
const void* pNext;
|
|
118
|
+
MTLDevice_id mtlDevice;
|
|
117
119
|
} VkExportMetalDeviceInfoEXT;
|
|
118
120
|
|
|
119
121
|
typedef struct VkExportMetalCommandQueueInfoEXT {
|
|
120
|
-
VkStructureType
|
|
121
|
-
const void*
|
|
122
|
-
VkQueue
|
|
123
|
-
MTLCommandQueue_id
|
|
122
|
+
VkStructureType sType;
|
|
123
|
+
const void* pNext;
|
|
124
|
+
VkQueue queue;
|
|
125
|
+
MTLCommandQueue_id mtlCommandQueue;
|
|
124
126
|
} VkExportMetalCommandQueueInfoEXT;
|
|
125
127
|
|
|
126
128
|
typedef struct VkExportMetalBufferInfoEXT {
|
|
127
|
-
VkStructureType
|
|
128
|
-
const void*
|
|
129
|
-
VkDeviceMemory
|
|
130
|
-
MTLBuffer_id
|
|
129
|
+
VkStructureType sType;
|
|
130
|
+
const void* pNext;
|
|
131
|
+
VkDeviceMemory memory;
|
|
132
|
+
MTLBuffer_id mtlBuffer;
|
|
131
133
|
} VkExportMetalBufferInfoEXT;
|
|
132
134
|
|
|
133
135
|
typedef struct VkImportMetalBufferInfoEXT {
|
|
134
|
-
VkStructureType
|
|
135
|
-
const void*
|
|
136
|
-
MTLBuffer_id
|
|
136
|
+
VkStructureType sType;
|
|
137
|
+
const void* pNext;
|
|
138
|
+
MTLBuffer_id mtlBuffer;
|
|
137
139
|
} VkImportMetalBufferInfoEXT;
|
|
138
140
|
|
|
139
141
|
typedef struct VkExportMetalTextureInfoEXT {
|
|
140
|
-
VkStructureType
|
|
141
|
-
const void*
|
|
142
|
-
VkImage
|
|
143
|
-
VkImageView
|
|
144
|
-
VkBufferView
|
|
145
|
-
VkImageAspectFlagBits
|
|
146
|
-
MTLTexture_id
|
|
142
|
+
VkStructureType sType;
|
|
143
|
+
const void* pNext;
|
|
144
|
+
VkImage image;
|
|
145
|
+
VkImageView imageView;
|
|
146
|
+
VkBufferView bufferView;
|
|
147
|
+
VkImageAspectFlagBits plane;
|
|
148
|
+
MTLTexture_id mtlTexture;
|
|
147
149
|
} VkExportMetalTextureInfoEXT;
|
|
148
150
|
|
|
149
151
|
typedef struct VkImportMetalTextureInfoEXT {
|
|
150
|
-
VkStructureType
|
|
151
|
-
const void*
|
|
152
|
-
VkImageAspectFlagBits
|
|
153
|
-
MTLTexture_id
|
|
152
|
+
VkStructureType sType;
|
|
153
|
+
const void* pNext;
|
|
154
|
+
VkImageAspectFlagBits plane;
|
|
155
|
+
MTLTexture_id mtlTexture;
|
|
154
156
|
} VkImportMetalTextureInfoEXT;
|
|
155
157
|
|
|
156
158
|
typedef struct VkExportMetalIOSurfaceInfoEXT {
|
|
157
|
-
VkStructureType
|
|
158
|
-
const void*
|
|
159
|
-
VkImage
|
|
160
|
-
IOSurfaceRef
|
|
159
|
+
VkStructureType sType;
|
|
160
|
+
const void* pNext;
|
|
161
|
+
VkImage image;
|
|
162
|
+
IOSurfaceRef ioSurface;
|
|
161
163
|
} VkExportMetalIOSurfaceInfoEXT;
|
|
162
164
|
|
|
163
165
|
typedef struct VkImportMetalIOSurfaceInfoEXT {
|
|
164
|
-
VkStructureType
|
|
165
|
-
const void*
|
|
166
|
-
IOSurfaceRef
|
|
166
|
+
VkStructureType sType;
|
|
167
|
+
const void* pNext;
|
|
168
|
+
IOSurfaceRef ioSurface;
|
|
167
169
|
} VkImportMetalIOSurfaceInfoEXT;
|
|
168
170
|
|
|
169
171
|
typedef struct VkExportMetalSharedEventInfoEXT {
|
|
170
|
-
VkStructureType
|
|
171
|
-
const void*
|
|
172
|
-
VkSemaphore
|
|
173
|
-
VkEvent
|
|
174
|
-
MTLSharedEvent_id
|
|
172
|
+
VkStructureType sType;
|
|
173
|
+
const void* pNext;
|
|
174
|
+
VkSemaphore semaphore;
|
|
175
|
+
VkEvent event;
|
|
176
|
+
MTLSharedEvent_id mtlSharedEvent;
|
|
175
177
|
} VkExportMetalSharedEventInfoEXT;
|
|
176
178
|
|
|
177
179
|
typedef struct VkImportMetalSharedEventInfoEXT {
|
|
178
|
-
VkStructureType
|
|
179
|
-
const void*
|
|
180
|
-
MTLSharedEvent_id
|
|
180
|
+
VkStructureType sType;
|
|
181
|
+
const void* pNext;
|
|
182
|
+
MTLSharedEvent_id mtlSharedEvent;
|
|
181
183
|
} VkImportMetalSharedEventInfoEXT;
|
|
182
184
|
|
|
183
|
-
typedef void(VKAPI_PTR*
|
|
184
|
-
VkDevice device, VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
|
185
|
+
typedef void (VKAPI_PTR *PFN_vkExportMetalObjectsEXT)(VkDevice device, VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
|
185
186
|
|
|
186
187
|
#ifndef VK_NO_PROTOTYPES
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
189
|
+
VKAPI_ATTR void VKAPI_CALL vkExportMetalObjectsEXT(
|
|
190
|
+
VkDevice device,
|
|
191
|
+
VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
|
189
192
|
#endif
|
|
193
|
+
#endif
|
|
194
|
+
|
|
190
195
|
|
|
191
196
|
// VK_EXT_external_memory_metal is a preprocessor guard. Do not pass it to API calls.
|
|
192
197
|
#define VK_EXT_external_memory_metal 1
|
|
193
198
|
#define VK_EXT_EXTERNAL_MEMORY_METAL_SPEC_VERSION 1
|
|
194
199
|
#define VK_EXT_EXTERNAL_MEMORY_METAL_EXTENSION_NAME "VK_EXT_external_memory_metal"
|
|
195
200
|
typedef struct VkImportMemoryMetalHandleInfoEXT {
|
|
196
|
-
VkStructureType
|
|
197
|
-
const void*
|
|
198
|
-
VkExternalMemoryHandleTypeFlagBits
|
|
199
|
-
void*
|
|
201
|
+
VkStructureType sType;
|
|
202
|
+
const void* pNext;
|
|
203
|
+
VkExternalMemoryHandleTypeFlagBits handleType;
|
|
204
|
+
void* handle;
|
|
200
205
|
} VkImportMemoryMetalHandleInfoEXT;
|
|
201
206
|
|
|
202
207
|
typedef struct VkMemoryMetalHandlePropertiesEXT {
|
|
203
|
-
VkStructureType
|
|
204
|
-
void*
|
|
205
|
-
uint32_t
|
|
208
|
+
VkStructureType sType;
|
|
209
|
+
void* pNext;
|
|
210
|
+
uint32_t memoryTypeBits;
|
|
206
211
|
} VkMemoryMetalHandlePropertiesEXT;
|
|
207
212
|
|
|
208
213
|
typedef struct VkMemoryGetMetalHandleInfoEXT {
|
|
209
|
-
VkStructureType
|
|
210
|
-
const void*
|
|
211
|
-
VkDeviceMemory
|
|
212
|
-
VkExternalMemoryHandleTypeFlagBits
|
|
214
|
+
VkStructureType sType;
|
|
215
|
+
const void* pNext;
|
|
216
|
+
VkDeviceMemory memory;
|
|
217
|
+
VkExternalMemoryHandleTypeFlagBits handleType;
|
|
213
218
|
} VkMemoryGetMetalHandleInfoEXT;
|
|
214
219
|
|
|
215
|
-
typedef VkResult(VKAPI_PTR*
|
|
216
|
-
|
|
217
|
-
typedef VkResult(VKAPI_PTR* PFN_vkGetMemoryMetalHandlePropertiesEXT)(
|
|
218
|
-
VkDevice device,
|
|
219
|
-
VkExternalMemoryHandleTypeFlagBits handleType,
|
|
220
|
-
const void* pHandle,
|
|
221
|
-
VkMemoryMetalHandlePropertiesEXT* pMemoryMetalHandleProperties);
|
|
220
|
+
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryMetalHandleEXT)(VkDevice device, const VkMemoryGetMetalHandleInfoEXT* pGetMetalHandleInfo, void** pHandle);
|
|
221
|
+
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryMetalHandlePropertiesEXT)(VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, const void* pHandle, VkMemoryMetalHandlePropertiesEXT* pMemoryMetalHandleProperties);
|
|
222
222
|
|
|
223
223
|
#ifndef VK_NO_PROTOTYPES
|
|
224
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
224
225
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryMetalHandleEXT(
|
|
225
|
-
|
|
226
|
+
VkDevice device,
|
|
227
|
+
const VkMemoryGetMetalHandleInfoEXT* pGetMetalHandleInfo,
|
|
228
|
+
void** pHandle);
|
|
229
|
+
#endif
|
|
226
230
|
|
|
227
|
-
|
|
228
|
-
vkGetMemoryMetalHandlePropertiesEXT(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
232
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryMetalHandlePropertiesEXT(
|
|
233
|
+
VkDevice device,
|
|
234
|
+
VkExternalMemoryHandleTypeFlagBits handleType,
|
|
235
|
+
const void* pHandle,
|
|
236
|
+
VkMemoryMetalHandlePropertiesEXT* pMemoryMetalHandleProperties);
|
|
237
|
+
#endif
|
|
232
238
|
#endif
|
|
233
239
|
|
|
234
240
|
#ifdef __cplusplus
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
#ifndef VULKAN_OHOS_H_
|
|
2
|
+
#define VULKAN_OHOS_H_ 1
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
|
+
**
|
|
7
|
+
** SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
** This header is generated from the Khronos Vulkan XML API Registry.
|
|
12
|
+
**
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#ifdef __cplusplus
|
|
17
|
+
extern "C" {
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// VK_OHOS_external_memory is a preprocessor guard. Do not pass it to API calls.
|
|
23
|
+
#define VK_OHOS_external_memory 1
|
|
24
|
+
struct OH_NativeBuffer;
|
|
25
|
+
#define VK_OHOS_EXTERNAL_MEMORY_SPEC_VERSION 1
|
|
26
|
+
#define VK_OHOS_EXTERNAL_MEMORY_EXTENSION_NAME "VK_OHOS_external_memory"
|
|
27
|
+
typedef struct VkNativeBufferUsageOHOS {
|
|
28
|
+
VkStructureType sType;
|
|
29
|
+
void* pNext;
|
|
30
|
+
uint64_t OHOSNativeBufferUsage;
|
|
31
|
+
} VkNativeBufferUsageOHOS;
|
|
32
|
+
|
|
33
|
+
typedef struct VkNativeBufferPropertiesOHOS {
|
|
34
|
+
VkStructureType sType;
|
|
35
|
+
void* pNext;
|
|
36
|
+
VkDeviceSize allocationSize;
|
|
37
|
+
uint32_t memoryTypeBits;
|
|
38
|
+
} VkNativeBufferPropertiesOHOS;
|
|
39
|
+
|
|
40
|
+
typedef struct VkNativeBufferFormatPropertiesOHOS {
|
|
41
|
+
VkStructureType sType;
|
|
42
|
+
void* pNext;
|
|
43
|
+
VkFormat format;
|
|
44
|
+
uint64_t externalFormat;
|
|
45
|
+
VkFormatFeatureFlags formatFeatures;
|
|
46
|
+
VkComponentMapping samplerYcbcrConversionComponents;
|
|
47
|
+
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
|
|
48
|
+
VkSamplerYcbcrRange suggestedYcbcrRange;
|
|
49
|
+
VkChromaLocation suggestedXChromaOffset;
|
|
50
|
+
VkChromaLocation suggestedYChromaOffset;
|
|
51
|
+
} VkNativeBufferFormatPropertiesOHOS;
|
|
52
|
+
|
|
53
|
+
typedef struct VkImportNativeBufferInfoOHOS {
|
|
54
|
+
VkStructureType sType;
|
|
55
|
+
const void* pNext;
|
|
56
|
+
struct OH_NativeBuffer* buffer;
|
|
57
|
+
} VkImportNativeBufferInfoOHOS;
|
|
58
|
+
|
|
59
|
+
typedef struct VkMemoryGetNativeBufferInfoOHOS {
|
|
60
|
+
VkStructureType sType;
|
|
61
|
+
const void* pNext;
|
|
62
|
+
VkDeviceMemory memory;
|
|
63
|
+
} VkMemoryGetNativeBufferInfoOHOS;
|
|
64
|
+
|
|
65
|
+
typedef struct VkExternalFormatOHOS {
|
|
66
|
+
VkStructureType sType;
|
|
67
|
+
void* pNext;
|
|
68
|
+
uint64_t externalFormat;
|
|
69
|
+
} VkExternalFormatOHOS;
|
|
70
|
+
|
|
71
|
+
typedef VkResult (VKAPI_PTR *PFN_vkGetNativeBufferPropertiesOHOS)(VkDevice device, const struct OH_NativeBuffer* buffer, VkNativeBufferPropertiesOHOS* pProperties);
|
|
72
|
+
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryNativeBufferOHOS)(VkDevice device, const VkMemoryGetNativeBufferInfoOHOS* pInfo, struct OH_NativeBuffer** pBuffer);
|
|
73
|
+
|
|
74
|
+
#ifndef VK_NO_PROTOTYPES
|
|
75
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
76
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkGetNativeBufferPropertiesOHOS(
|
|
77
|
+
VkDevice device,
|
|
78
|
+
const struct OH_NativeBuffer* buffer,
|
|
79
|
+
VkNativeBufferPropertiesOHOS* pProperties);
|
|
80
|
+
#endif
|
|
81
|
+
|
|
82
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
83
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryNativeBufferOHOS(
|
|
84
|
+
VkDevice device,
|
|
85
|
+
const VkMemoryGetNativeBufferInfoOHOS* pInfo,
|
|
86
|
+
struct OH_NativeBuffer** pBuffer);
|
|
87
|
+
#endif
|
|
88
|
+
#endif
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
// VK_OHOS_surface is a preprocessor guard. Do not pass it to API calls.
|
|
92
|
+
#define VK_OHOS_surface 1
|
|
93
|
+
typedef struct NativeWindow OHNativeWindow;
|
|
94
|
+
#define VK_OHOS_SURFACE_SPEC_VERSION 1
|
|
95
|
+
#define VK_OHOS_SURFACE_EXTENSION_NAME "VK_OHOS_surface"
|
|
96
|
+
typedef VkFlags VkSurfaceCreateFlagsOHOS;
|
|
97
|
+
typedef struct VkSurfaceCreateInfoOHOS {
|
|
98
|
+
VkStructureType sType;
|
|
99
|
+
const void* pNext;
|
|
100
|
+
VkSurfaceCreateFlagsOHOS flags;
|
|
101
|
+
OHNativeWindow* window;
|
|
102
|
+
} VkSurfaceCreateInfoOHOS;
|
|
103
|
+
|
|
104
|
+
typedef VkResult (VKAPI_PTR *PFN_vkCreateSurfaceOHOS)(VkInstance instance, const VkSurfaceCreateInfoOHOS* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
105
|
+
|
|
106
|
+
#ifndef VK_NO_PROTOTYPES
|
|
107
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
108
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkCreateSurfaceOHOS(
|
|
109
|
+
VkInstance instance,
|
|
110
|
+
const VkSurfaceCreateInfoOHOS* pCreateInfo,
|
|
111
|
+
const VkAllocationCallbacks* pAllocator,
|
|
112
|
+
VkSurfaceKHR* pSurface);
|
|
113
|
+
#endif
|
|
114
|
+
#endif
|
|
115
|
+
|
|
116
|
+
#ifdef __cplusplus
|
|
117
|
+
}
|
|
118
|
+
#endif
|
|
119
|
+
|
|
120
|
+
#endif
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_SCREEN_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -12,95 +12,99 @@
|
|
|
12
12
|
**
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
#ifdef __cplusplus
|
|
16
17
|
extern "C" {
|
|
17
18
|
#endif
|
|
18
19
|
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
// VK_QNX_screen_surface is a preprocessor guard. Do not pass it to API calls.
|
|
20
23
|
#define VK_QNX_screen_surface 1
|
|
21
24
|
#define VK_QNX_SCREEN_SURFACE_SPEC_VERSION 1
|
|
22
25
|
#define VK_QNX_SCREEN_SURFACE_EXTENSION_NAME "VK_QNX_screen_surface"
|
|
23
26
|
typedef VkFlags VkScreenSurfaceCreateFlagsQNX;
|
|
24
27
|
typedef struct VkScreenSurfaceCreateInfoQNX {
|
|
25
|
-
VkStructureType
|
|
26
|
-
const void*
|
|
27
|
-
VkScreenSurfaceCreateFlagsQNX
|
|
28
|
-
struct _screen_context*
|
|
29
|
-
struct _screen_window*
|
|
28
|
+
VkStructureType sType;
|
|
29
|
+
const void* pNext;
|
|
30
|
+
VkScreenSurfaceCreateFlagsQNX flags;
|
|
31
|
+
struct _screen_context* context;
|
|
32
|
+
struct _screen_window* window;
|
|
30
33
|
} VkScreenSurfaceCreateInfoQNX;
|
|
31
34
|
|
|
32
|
-
typedef VkResult(VKAPI_PTR*
|
|
33
|
-
|
|
34
|
-
const VkScreenSurfaceCreateInfoQNX* pCreateInfo,
|
|
35
|
-
const VkAllocationCallbacks* pAllocator,
|
|
36
|
-
VkSurfaceKHR* pSurface);
|
|
37
|
-
typedef VkBool32(VKAPI_PTR* PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX)(
|
|
38
|
-
VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct _screen_window* window);
|
|
35
|
+
typedef VkResult (VKAPI_PTR *PFN_vkCreateScreenSurfaceQNX)(VkInstance instance, const VkScreenSurfaceCreateInfoQNX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
36
|
+
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct _screen_window* window);
|
|
39
37
|
|
|
40
38
|
#ifndef VK_NO_PROTOTYPES
|
|
41
|
-
|
|
42
|
-
vkCreateScreenSurfaceQNX(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
40
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkCreateScreenSurfaceQNX(
|
|
41
|
+
VkInstance instance,
|
|
42
|
+
const VkScreenSurfaceCreateInfoQNX* pCreateInfo,
|
|
43
|
+
const VkAllocationCallbacks* pAllocator,
|
|
44
|
+
VkSurfaceKHR* pSurface);
|
|
45
|
+
#endif
|
|
46
46
|
|
|
47
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
47
48
|
VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceScreenPresentationSupportQNX(
|
|
48
|
-
|
|
49
|
+
VkPhysicalDevice physicalDevice,
|
|
50
|
+
uint32_t queueFamilyIndex,
|
|
51
|
+
struct _screen_window* window);
|
|
49
52
|
#endif
|
|
53
|
+
#endif
|
|
54
|
+
|
|
50
55
|
|
|
51
56
|
// VK_QNX_external_memory_screen_buffer is a preprocessor guard. Do not pass it to API calls.
|
|
52
57
|
#define VK_QNX_external_memory_screen_buffer 1
|
|
53
58
|
#define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_SPEC_VERSION 1
|
|
54
59
|
#define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_EXTENSION_NAME "VK_QNX_external_memory_screen_buffer"
|
|
55
60
|
typedef struct VkScreenBufferPropertiesQNX {
|
|
56
|
-
VkStructureType
|
|
57
|
-
void*
|
|
58
|
-
VkDeviceSize
|
|
59
|
-
uint32_t
|
|
61
|
+
VkStructureType sType;
|
|
62
|
+
void* pNext;
|
|
63
|
+
VkDeviceSize allocationSize;
|
|
64
|
+
uint32_t memoryTypeBits;
|
|
60
65
|
} VkScreenBufferPropertiesQNX;
|
|
61
66
|
|
|
62
67
|
typedef struct VkScreenBufferFormatPropertiesQNX {
|
|
63
|
-
VkStructureType
|
|
64
|
-
void*
|
|
65
|
-
VkFormat
|
|
66
|
-
uint64_t
|
|
67
|
-
uint64_t
|
|
68
|
-
VkFormatFeatureFlags
|
|
69
|
-
VkComponentMapping
|
|
70
|
-
VkSamplerYcbcrModelConversion
|
|
71
|
-
VkSamplerYcbcrRange
|
|
72
|
-
VkChromaLocation
|
|
73
|
-
VkChromaLocation
|
|
68
|
+
VkStructureType sType;
|
|
69
|
+
void* pNext;
|
|
70
|
+
VkFormat format;
|
|
71
|
+
uint64_t externalFormat;
|
|
72
|
+
uint64_t screenUsage;
|
|
73
|
+
VkFormatFeatureFlags formatFeatures;
|
|
74
|
+
VkComponentMapping samplerYcbcrConversionComponents;
|
|
75
|
+
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
|
|
76
|
+
VkSamplerYcbcrRange suggestedYcbcrRange;
|
|
77
|
+
VkChromaLocation suggestedXChromaOffset;
|
|
78
|
+
VkChromaLocation suggestedYChromaOffset;
|
|
74
79
|
} VkScreenBufferFormatPropertiesQNX;
|
|
75
80
|
|
|
76
81
|
typedef struct VkImportScreenBufferInfoQNX {
|
|
77
|
-
VkStructureType
|
|
78
|
-
const void*
|
|
79
|
-
struct _screen_buffer*
|
|
82
|
+
VkStructureType sType;
|
|
83
|
+
const void* pNext;
|
|
84
|
+
struct _screen_buffer* buffer;
|
|
80
85
|
} VkImportScreenBufferInfoQNX;
|
|
81
86
|
|
|
82
87
|
typedef struct VkExternalFormatQNX {
|
|
83
|
-
VkStructureType
|
|
84
|
-
void*
|
|
85
|
-
uint64_t
|
|
88
|
+
VkStructureType sType;
|
|
89
|
+
void* pNext;
|
|
90
|
+
uint64_t externalFormat;
|
|
86
91
|
} VkExternalFormatQNX;
|
|
87
92
|
|
|
88
93
|
typedef struct VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX {
|
|
89
|
-
VkStructureType
|
|
90
|
-
void*
|
|
91
|
-
VkBool32
|
|
94
|
+
VkStructureType sType;
|
|
95
|
+
void* pNext;
|
|
96
|
+
VkBool32 screenBufferImport;
|
|
92
97
|
} VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX;
|
|
93
98
|
|
|
94
|
-
typedef VkResult(VKAPI_PTR*
|
|
95
|
-
VkDevice device,
|
|
96
|
-
const struct _screen_buffer* buffer,
|
|
97
|
-
VkScreenBufferPropertiesQNX* pProperties);
|
|
99
|
+
typedef VkResult (VKAPI_PTR *PFN_vkGetScreenBufferPropertiesQNX)(VkDevice device, const struct _screen_buffer* buffer, VkScreenBufferPropertiesQNX* pProperties);
|
|
98
100
|
|
|
99
101
|
#ifndef VK_NO_PROTOTYPES
|
|
100
|
-
|
|
101
|
-
vkGetScreenBufferPropertiesQNX(
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
103
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkGetScreenBufferPropertiesQNX(
|
|
104
|
+
VkDevice device,
|
|
105
|
+
const struct _screen_buffer* buffer,
|
|
106
|
+
VkScreenBufferPropertiesQNX* pProperties);
|
|
107
|
+
#endif
|
|
104
108
|
#endif
|
|
105
109
|
|
|
106
110
|
#ifdef __cplusplus
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_VI_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -12,32 +12,35 @@
|
|
|
12
12
|
**
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
#ifdef __cplusplus
|
|
16
17
|
extern "C" {
|
|
17
18
|
#endif
|
|
18
19
|
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
// VK_NN_vi_surface is a preprocessor guard. Do not pass it to API calls.
|
|
20
23
|
#define VK_NN_vi_surface 1
|
|
21
|
-
#define VK_NN_VI_SURFACE_SPEC_VERSION
|
|
22
|
-
#define VK_NN_VI_SURFACE_EXTENSION_NAME
|
|
24
|
+
#define VK_NN_VI_SURFACE_SPEC_VERSION 1
|
|
25
|
+
#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface"
|
|
23
26
|
typedef VkFlags VkViSurfaceCreateFlagsNN;
|
|
24
27
|
typedef struct VkViSurfaceCreateInfoNN {
|
|
25
|
-
VkStructureType
|
|
26
|
-
const void*
|
|
27
|
-
VkViSurfaceCreateFlagsNN
|
|
28
|
-
void*
|
|
28
|
+
VkStructureType sType;
|
|
29
|
+
const void* pNext;
|
|
30
|
+
VkViSurfaceCreateFlagsNN flags;
|
|
31
|
+
void* window;
|
|
29
32
|
} VkViSurfaceCreateInfoNN;
|
|
30
33
|
|
|
31
|
-
typedef VkResult(VKAPI_PTR*
|
|
32
|
-
const VkViSurfaceCreateInfoNN* pCreateInfo,
|
|
33
|
-
const VkAllocationCallbacks* pAllocator,
|
|
34
|
-
VkSurfaceKHR* pSurface);
|
|
34
|
+
typedef VkResult (VKAPI_PTR *PFN_vkCreateViSurfaceNN)(VkInstance instance, const VkViSurfaceCreateInfoNN* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
35
35
|
|
|
36
36
|
#ifndef VK_NO_PROTOTYPES
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
38
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkCreateViSurfaceNN(
|
|
39
|
+
VkInstance instance,
|
|
40
|
+
const VkViSurfaceCreateInfoNN* pCreateInfo,
|
|
41
|
+
const VkAllocationCallbacks* pAllocator,
|
|
42
|
+
VkSurfaceKHR* pSurface);
|
|
43
|
+
#endif
|
|
41
44
|
#endif
|
|
42
45
|
|
|
43
46
|
#ifdef __cplusplus
|