@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
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
-
#include <stdbool.h>
|
|
11
10
|
#include "vulkan.h"
|
|
11
|
+
#include <stdbool.h>
|
|
12
12
|
|
|
13
13
|
// Loader-ICD version negotiation API. Versions add the following features:
|
|
14
14
|
// Version 0 - Initial. Doesn't support vk_icdGetInstanceProcAddr
|
|
@@ -41,26 +41,21 @@
|
|
|
41
41
|
#define MIN_PHYS_DEV_EXTENSION_ICD_INTERFACE_VERSION 4
|
|
42
42
|
|
|
43
43
|
// Old typedefs that don't follow a proper naming convention but are preserved for compatibility
|
|
44
|
-
typedef VkResult(VKAPI_PTR*
|
|
45
|
-
// This is defined in vk_layer.h which will be found by the loader, but if an ICD is building
|
|
46
|
-
//
|
|
47
|
-
#ifndef
|
|
48
|
-
typedef PFN_vkVoidFunction(VKAPI_PTR*
|
|
49
|
-
|
|
44
|
+
typedef VkResult(VKAPI_PTR *PFN_vkNegotiateLoaderICDInterfaceVersion)(uint32_t *pVersion);
|
|
45
|
+
// This is defined in vk_layer.h which will be found by the loader, but if an ICD is building against this
|
|
46
|
+
// file directly, it won't be found.
|
|
47
|
+
#ifndef IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
48
|
+
typedef PFN_vkVoidFunction(VKAPI_PTR *PFN_GetPhysicalDeviceProcAddr)(VkInstance instance, const char *pName);
|
|
49
|
+
#define IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
50
50
|
#endif
|
|
51
51
|
|
|
52
52
|
// Typedefs for loader/ICD interface
|
|
53
|
-
typedef VkResult(VKAPI_PTR*
|
|
54
|
-
typedef PFN_vkVoidFunction(VKAPI_PTR*
|
|
55
|
-
|
|
56
|
-
typedef PFN_vkVoidFunction(VKAPI_PTR* PFN_vk_icdGetPhysicalDeviceProcAddr)(VkInstance instance,
|
|
57
|
-
const char* pName);
|
|
53
|
+
typedef VkResult (VKAPI_PTR *PFN_vk_icdNegotiateLoaderICDInterfaceVersion)(uint32_t* pVersion);
|
|
54
|
+
typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vk_icdGetInstanceProcAddr)(VkInstance instance, const char* pName);
|
|
55
|
+
typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vk_icdGetPhysicalDeviceProcAddr)(VkInstance instance, const char* pName);
|
|
58
56
|
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
|
59
|
-
typedef VkResult(VKAPI_PTR*
|
|
60
|
-
|
|
61
|
-
LUID adapterLUID,
|
|
62
|
-
uint32_t* pPhysicalDeviceCount,
|
|
63
|
-
VkPhysicalDevice* pPhysicalDevices);
|
|
57
|
+
typedef VkResult (VKAPI_PTR *PFN_vk_icdEnumerateAdapterPhysicalDevices)(VkInstance instance, LUID adapterLUID,
|
|
58
|
+
uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
|
|
64
59
|
#endif
|
|
65
60
|
|
|
66
61
|
// Prototypes for loader/ICD interface
|
|
@@ -68,17 +63,12 @@ typedef VkResult(VKAPI_PTR* PFN_vk_icdEnumerateAdapterPhysicalDevices)(
|
|
|
68
63
|
#ifdef __cplusplus
|
|
69
64
|
extern "C" {
|
|
70
65
|
#endif
|
|
71
|
-
VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
|
|
72
|
-
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance,
|
|
73
|
-
|
|
74
|
-
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance instance,
|
|
75
|
-
const char* pName);
|
|
66
|
+
VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
|
|
67
|
+
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
|
|
68
|
+
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance instance, const char* pName);
|
|
76
69
|
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
|
77
|
-
VKAPI_ATTR VkResult VKAPI_CALL
|
|
78
|
-
|
|
79
|
-
LUID adapterLUID,
|
|
80
|
-
uint32_t* pPhysicalDeviceCount,
|
|
81
|
-
VkPhysicalDevice* pPhysicalDevices);
|
|
70
|
+
VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID,
|
|
71
|
+
uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
|
|
82
72
|
#endif
|
|
83
73
|
#ifdef __cplusplus
|
|
84
74
|
}
|
|
@@ -95,16 +85,16 @@ vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance,
|
|
|
95
85
|
|
|
96
86
|
typedef union {
|
|
97
87
|
uintptr_t loaderMagic;
|
|
98
|
-
void*
|
|
88
|
+
void *loaderData;
|
|
99
89
|
} VK_LOADER_DATA;
|
|
100
90
|
|
|
101
|
-
static inline void set_loader_magic_value(void*
|
|
102
|
-
VK_LOADER_DATA*
|
|
91
|
+
static inline void set_loader_magic_value(void *pNewObject) {
|
|
92
|
+
VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *)pNewObject;
|
|
103
93
|
loader_info->loaderMagic = ICD_LOADER_MAGIC;
|
|
104
94
|
}
|
|
105
95
|
|
|
106
|
-
static inline bool valid_loader_magic_value(void*
|
|
107
|
-
const VK_LOADER_DATA*
|
|
96
|
+
static inline bool valid_loader_magic_value(void *pNewObject) {
|
|
97
|
+
const VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *)pNewObject;
|
|
108
98
|
return (loader_info->loaderMagic & 0xffffffff) == ICD_LOADER_MAGIC;
|
|
109
99
|
}
|
|
110
100
|
|
|
@@ -138,16 +128,16 @@ typedef struct {
|
|
|
138
128
|
#ifdef VK_USE_PLATFORM_MIR_KHR
|
|
139
129
|
typedef struct {
|
|
140
130
|
VkIcdSurfaceBase base;
|
|
141
|
-
MirConnection*
|
|
142
|
-
MirSurface*
|
|
131
|
+
MirConnection *connection;
|
|
132
|
+
MirSurface *mirSurface;
|
|
143
133
|
} VkIcdSurfaceMir;
|
|
144
134
|
#endif // VK_USE_PLATFORM_MIR_KHR
|
|
145
135
|
|
|
146
136
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
|
147
137
|
typedef struct {
|
|
148
138
|
VkIcdSurfaceBase base;
|
|
149
|
-
struct wl_display*
|
|
150
|
-
struct wl_surface*
|
|
139
|
+
struct wl_display *display;
|
|
140
|
+
struct wl_surface *surface;
|
|
151
141
|
} VkIcdSurfaceWayland;
|
|
152
142
|
#endif // VK_USE_PLATFORM_WAYLAND_KHR
|
|
153
143
|
|
|
@@ -162,7 +152,7 @@ typedef struct {
|
|
|
162
152
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
|
163
153
|
typedef struct {
|
|
164
154
|
VkIcdSurfaceBase base;
|
|
165
|
-
xcb_connection_t*
|
|
155
|
+
xcb_connection_t *connection;
|
|
166
156
|
xcb_window_t window;
|
|
167
157
|
} VkIcdSurfaceXcb;
|
|
168
158
|
#endif // VK_USE_PLATFORM_XCB_KHR
|
|
@@ -170,7 +160,7 @@ typedef struct {
|
|
|
170
160
|
#ifdef VK_USE_PLATFORM_XLIB_KHR
|
|
171
161
|
typedef struct {
|
|
172
162
|
VkIcdSurfaceBase base;
|
|
173
|
-
Display*
|
|
163
|
+
Display *dpy;
|
|
174
164
|
Window window;
|
|
175
165
|
} VkIcdSurfaceXlib;
|
|
176
166
|
#endif // VK_USE_PLATFORM_XLIB_KHR
|
|
@@ -178,29 +168,29 @@ typedef struct {
|
|
|
178
168
|
#ifdef VK_USE_PLATFORM_DIRECTFB_EXT
|
|
179
169
|
typedef struct {
|
|
180
170
|
VkIcdSurfaceBase base;
|
|
181
|
-
IDirectFB*
|
|
182
|
-
IDirectFBSurface*
|
|
171
|
+
IDirectFB *dfb;
|
|
172
|
+
IDirectFBSurface *surface;
|
|
183
173
|
} VkIcdSurfaceDirectFB;
|
|
184
174
|
#endif // VK_USE_PLATFORM_DIRECTFB_EXT
|
|
185
175
|
|
|
186
176
|
#ifdef VK_USE_PLATFORM_ANDROID_KHR
|
|
187
177
|
typedef struct {
|
|
188
178
|
VkIcdSurfaceBase base;
|
|
189
|
-
struct ANativeWindow*
|
|
179
|
+
struct ANativeWindow *window;
|
|
190
180
|
} VkIcdSurfaceAndroid;
|
|
191
181
|
#endif // VK_USE_PLATFORM_ANDROID_KHR
|
|
192
182
|
|
|
193
183
|
#ifdef VK_USE_PLATFORM_MACOS_MVK
|
|
194
184
|
typedef struct {
|
|
195
185
|
VkIcdSurfaceBase base;
|
|
196
|
-
const void*
|
|
186
|
+
const void *pView;
|
|
197
187
|
} VkIcdSurfaceMacOS;
|
|
198
188
|
#endif // VK_USE_PLATFORM_MACOS_MVK
|
|
199
189
|
|
|
200
190
|
#ifdef VK_USE_PLATFORM_IOS_MVK
|
|
201
191
|
typedef struct {
|
|
202
192
|
VkIcdSurfaceBase base;
|
|
203
|
-
const void*
|
|
193
|
+
const void *pView;
|
|
204
194
|
} VkIcdSurfaceIOS;
|
|
205
195
|
#endif // VK_USE_PLATFORM_IOS_MVK
|
|
206
196
|
|
|
@@ -229,27 +219,27 @@ typedef struct {
|
|
|
229
219
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
|
230
220
|
typedef struct {
|
|
231
221
|
VkIcdSurfaceBase base;
|
|
232
|
-
const CAMetalLayer*
|
|
222
|
+
const CAMetalLayer *pLayer;
|
|
233
223
|
} VkIcdSurfaceMetal;
|
|
234
|
-
#endif
|
|
224
|
+
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
235
225
|
|
|
236
226
|
#ifdef VK_USE_PLATFORM_VI_NN
|
|
237
227
|
typedef struct {
|
|
238
228
|
VkIcdSurfaceBase base;
|
|
239
|
-
void*
|
|
229
|
+
void *window;
|
|
240
230
|
} VkIcdSurfaceVi;
|
|
241
|
-
#endif
|
|
231
|
+
#endif // VK_USE_PLATFORM_VI_NN
|
|
242
232
|
|
|
243
233
|
#ifdef VK_USE_PLATFORM_SCREEN_QNX
|
|
244
234
|
typedef struct {
|
|
245
235
|
VkIcdSurfaceBase base;
|
|
246
|
-
struct _screen_context*
|
|
247
|
-
struct _screen_window*
|
|
236
|
+
struct _screen_context *context;
|
|
237
|
+
struct _screen_window *window;
|
|
248
238
|
} VkIcdSurfaceScreen;
|
|
249
239
|
#endif // VK_USE_PLATFORM_SCREEN_QNX
|
|
250
240
|
|
|
251
241
|
#ifdef VK_USE_PLATFORM_FUCHSIA
|
|
252
242
|
typedef struct {
|
|
253
|
-
|
|
243
|
+
VkIcdSurfaceBase base;
|
|
254
244
|
} VkIcdSurfaceImagePipe;
|
|
255
|
-
#endif
|
|
245
|
+
#endif // VK_USE_PLATFORM_FUCHSIA
|
|
@@ -16,19 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
#define MAX_NUM_UNKNOWN_EXTS 250
|
|
18
18
|
|
|
19
|
-
// Loader-Layer version negotiation API. Versions add the following features:
|
|
20
|
-
// Versions 0/1 - Initial. Doesn't support vk_layerGetPhysicalDeviceProcAddr
|
|
21
|
-
// or vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
22
|
-
// Version 2 - Add support for vk_layerGetPhysicalDeviceProcAddr and
|
|
23
|
-
// vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
19
|
+
// Loader-Layer version negotiation API. Versions add the following features:
|
|
20
|
+
// Versions 0/1 - Initial. Doesn't support vk_layerGetPhysicalDeviceProcAddr
|
|
21
|
+
// or vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
22
|
+
// Version 2 - Add support for vk_layerGetPhysicalDeviceProcAddr and
|
|
23
|
+
// vk_icdNegotiateLoaderLayerInterfaceVersion.
|
|
24
24
|
#define CURRENT_LOADER_LAYER_INTERFACE_VERSION 2
|
|
25
25
|
#define MIN_SUPPORTED_LOADER_LAYER_INTERFACE_VERSION 1
|
|
26
26
|
|
|
27
27
|
#define VK_CURRENT_CHAIN_VERSION 1
|
|
28
28
|
|
|
29
29
|
// Typedef for use in the interfaces below
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
#ifndef IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
31
|
+
typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_GetPhysicalDeviceProcAddr)(VkInstance instance, const char* pName);
|
|
32
|
+
#define IS_DEFINED_PFN_GetPhysicalDeviceProcAddr
|
|
33
|
+
#endif
|
|
32
34
|
|
|
33
35
|
// Version negotiation values
|
|
34
36
|
typedef enum VkNegotiateLayerStructType {
|
|
@@ -39,7 +41,7 @@ typedef enum VkNegotiateLayerStructType {
|
|
|
39
41
|
// Version negotiation structures
|
|
40
42
|
typedef struct VkNegotiateLayerInterface {
|
|
41
43
|
VkNegotiateLayerStructType sType;
|
|
42
|
-
void*
|
|
44
|
+
void *pNext;
|
|
43
45
|
uint32_t loaderLayerInterfaceVersion;
|
|
44
46
|
PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr;
|
|
45
47
|
PFN_vkGetDeviceProcAddr pfnGetDeviceProcAddr;
|
|
@@ -47,11 +49,10 @@ typedef struct VkNegotiateLayerInterface {
|
|
|
47
49
|
} VkNegotiateLayerInterface;
|
|
48
50
|
|
|
49
51
|
// Version negotiation functions
|
|
50
|
-
typedef VkResult(VKAPI_PTR*
|
|
51
|
-
VkNegotiateLayerInterface* pVersionStruct);
|
|
52
|
+
typedef VkResult (VKAPI_PTR *PFN_vkNegotiateLoaderLayerInterfaceVersion)(VkNegotiateLayerInterface *pVersionStruct);
|
|
52
53
|
|
|
53
54
|
// Function prototype for unknown physical device extension command
|
|
54
|
-
typedef VkResult(VKAPI_PTR*
|
|
55
|
+
typedef VkResult(VKAPI_PTR *PFN_PhysDevExt)(VkPhysicalDevice phys_device);
|
|
55
56
|
|
|
56
57
|
// ------------------------------------------------------------------------------------------------
|
|
57
58
|
// CreateInstance and CreateDevice support structures
|
|
@@ -69,7 +70,7 @@ typedef enum VkLayerFunction_ {
|
|
|
69
70
|
} VkLayerFunction;
|
|
70
71
|
|
|
71
72
|
typedef struct VkLayerInstanceLink_ {
|
|
72
|
-
struct VkLayerInstanceLink_*
|
|
73
|
+
struct VkLayerInstanceLink_ *pNext;
|
|
73
74
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
74
75
|
PFN_GetPhysicalDeviceProcAddr pfnNextGetPhysicalDeviceProcAddr;
|
|
75
76
|
} VkLayerInstanceLink;
|
|
@@ -82,22 +83,17 @@ typedef struct VkLayerInstanceLink_ {
|
|
|
82
83
|
* exact instance being used.
|
|
83
84
|
*/
|
|
84
85
|
typedef struct VkLayerDeviceInfo_ {
|
|
85
|
-
void*
|
|
86
|
+
void *device_info;
|
|
86
87
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
87
88
|
} VkLayerDeviceInfo;
|
|
88
89
|
|
|
89
|
-
typedef VkResult(VKAPI_PTR*
|
|
90
|
-
|
|
91
|
-
typedef VkResult(VKAPI_PTR*
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
PFN_vkGetInstanceProcAddr layerGIPA,
|
|
97
|
-
PFN_vkGetDeviceProcAddr* nextGDPA);
|
|
98
|
-
typedef void(VKAPI_PTR* PFN_vkLayerDestroyDevice)(VkDevice physicalDevice,
|
|
99
|
-
const VkAllocationCallbacks* pAllocator,
|
|
100
|
-
PFN_vkDestroyDevice destroyFunction);
|
|
90
|
+
typedef VkResult (VKAPI_PTR *PFN_vkSetInstanceLoaderData)(VkInstance instance,
|
|
91
|
+
void *object);
|
|
92
|
+
typedef VkResult (VKAPI_PTR *PFN_vkSetDeviceLoaderData)(VkDevice device,
|
|
93
|
+
void *object);
|
|
94
|
+
typedef VkResult (VKAPI_PTR *PFN_vkLayerCreateDevice)(VkInstance instance, VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo,
|
|
95
|
+
const VkAllocationCallbacks *pAllocator, VkDevice *pDevice, PFN_vkGetInstanceProcAddr layerGIPA, PFN_vkGetDeviceProcAddr *nextGDPA);
|
|
96
|
+
typedef void (VKAPI_PTR *PFN_vkLayerDestroyDevice)(VkDevice physicalDevice, const VkAllocationCallbacks *pAllocator, PFN_vkDestroyDevice destroyFunction);
|
|
101
97
|
|
|
102
98
|
typedef enum VkLoaderFeastureFlagBits {
|
|
103
99
|
VK_LOADER_FEATURE_PHYSICAL_DEVICE_SORTING = 0x00000001,
|
|
@@ -105,32 +101,32 @@ typedef enum VkLoaderFeastureFlagBits {
|
|
|
105
101
|
typedef VkFlags VkLoaderFeatureFlags;
|
|
106
102
|
|
|
107
103
|
typedef struct {
|
|
108
|
-
VkStructureType sType;
|
|
109
|
-
const void*
|
|
104
|
+
VkStructureType sType; // VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO
|
|
105
|
+
const void *pNext;
|
|
110
106
|
VkLayerFunction function;
|
|
111
107
|
union {
|
|
112
|
-
VkLayerInstanceLink*
|
|
108
|
+
VkLayerInstanceLink *pLayerInfo;
|
|
113
109
|
PFN_vkSetInstanceLoaderData pfnSetInstanceLoaderData;
|
|
114
110
|
struct {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
PFN_vkLayerCreateDevice pfnLayerCreateDevice;
|
|
112
|
+
PFN_vkLayerDestroyDevice pfnLayerDestroyDevice;
|
|
113
|
+
} layerDevice;
|
|
118
114
|
VkLoaderFeatureFlags loaderFeatures;
|
|
119
115
|
} u;
|
|
120
116
|
} VkLayerInstanceCreateInfo;
|
|
121
117
|
|
|
122
118
|
typedef struct VkLayerDeviceLink_ {
|
|
123
|
-
struct VkLayerDeviceLink_*
|
|
119
|
+
struct VkLayerDeviceLink_ *pNext;
|
|
124
120
|
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
|
|
125
121
|
PFN_vkGetDeviceProcAddr pfnNextGetDeviceProcAddr;
|
|
126
122
|
} VkLayerDeviceLink;
|
|
127
123
|
|
|
128
124
|
typedef struct {
|
|
129
|
-
VkStructureType sType;
|
|
130
|
-
const void*
|
|
125
|
+
VkStructureType sType; // VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO
|
|
126
|
+
const void *pNext;
|
|
131
127
|
VkLayerFunction function;
|
|
132
128
|
union {
|
|
133
|
-
VkLayerDeviceLink*
|
|
129
|
+
VkLayerDeviceLink *pLayerInfo;
|
|
134
130
|
PFN_vkSetDeviceLoaderData pfnSetDeviceLoaderData;
|
|
135
131
|
} u;
|
|
136
132
|
} VkLayerDeviceCreateInfo;
|
|
@@ -139,8 +135,7 @@ typedef struct {
|
|
|
139
135
|
extern "C" {
|
|
140
136
|
#endif
|
|
141
137
|
|
|
142
|
-
VKAPI_ATTR VkResult VKAPI_CALL
|
|
143
|
-
vkNegotiateLoaderLayerInterfaceVersion(VkNegotiateLayerInterface* pVersionStruct);
|
|
138
|
+
VKAPI_ATTR VkResult VKAPI_CALL vkNegotiateLoaderLayerInterfaceVersion(VkNegotiateLayerInterface *pVersionStruct);
|
|
144
139
|
|
|
145
140
|
typedef enum VkChainType {
|
|
146
141
|
VK_CHAIN_TYPE_UNKNOWN = 0,
|
|
@@ -157,16 +152,12 @@ typedef struct VkChainHeader {
|
|
|
157
152
|
|
|
158
153
|
typedef struct VkEnumerateInstanceExtensionPropertiesChain {
|
|
159
154
|
VkChainHeader header;
|
|
160
|
-
VkResult(VKAPI_PTR*
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
VkExtensionProperties*);
|
|
164
|
-
const struct VkEnumerateInstanceExtensionPropertiesChain* pNextLink;
|
|
155
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceExtensionPropertiesChain *, const char *, uint32_t *,
|
|
156
|
+
VkExtensionProperties *);
|
|
157
|
+
const struct VkEnumerateInstanceExtensionPropertiesChain *pNextLink;
|
|
165
158
|
|
|
166
159
|
#if defined(__cplusplus)
|
|
167
|
-
inline VkResult CallDown(const char*
|
|
168
|
-
uint32_t* pPropertyCount,
|
|
169
|
-
VkExtensionProperties* pProperties) const {
|
|
160
|
+
inline VkResult CallDown(const char *pLayerName, uint32_t *pPropertyCount, VkExtensionProperties *pProperties) const {
|
|
170
161
|
return pfnNextLayer(pNextLink, pLayerName, pPropertyCount, pProperties);
|
|
171
162
|
}
|
|
172
163
|
#endif
|
|
@@ -174,13 +165,11 @@ typedef struct VkEnumerateInstanceExtensionPropertiesChain {
|
|
|
174
165
|
|
|
175
166
|
typedef struct VkEnumerateInstanceLayerPropertiesChain {
|
|
176
167
|
VkChainHeader header;
|
|
177
|
-
VkResult(VKAPI_PTR*
|
|
178
|
-
|
|
179
|
-
VkLayerProperties*);
|
|
180
|
-
const struct VkEnumerateInstanceLayerPropertiesChain* pNextLink;
|
|
168
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceLayerPropertiesChain *, uint32_t *, VkLayerProperties *);
|
|
169
|
+
const struct VkEnumerateInstanceLayerPropertiesChain *pNextLink;
|
|
181
170
|
|
|
182
171
|
#if defined(__cplusplus)
|
|
183
|
-
inline VkResult CallDown(uint32_t*
|
|
172
|
+
inline VkResult CallDown(uint32_t *pPropertyCount, VkLayerProperties *pProperties) const {
|
|
184
173
|
return pfnNextLayer(pNextLink, pPropertyCount, pProperties);
|
|
185
174
|
}
|
|
186
175
|
#endif
|
|
@@ -188,11 +177,11 @@ typedef struct VkEnumerateInstanceLayerPropertiesChain {
|
|
|
188
177
|
|
|
189
178
|
typedef struct VkEnumerateInstanceVersionChain {
|
|
190
179
|
VkChainHeader header;
|
|
191
|
-
VkResult(VKAPI_PTR*
|
|
192
|
-
const struct VkEnumerateInstanceVersionChain*
|
|
180
|
+
VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceVersionChain *, uint32_t *);
|
|
181
|
+
const struct VkEnumerateInstanceVersionChain *pNextLink;
|
|
193
182
|
|
|
194
183
|
#if defined(__cplusplus)
|
|
195
|
-
inline VkResult CallDown(uint32_t*
|
|
184
|
+
inline VkResult CallDown(uint32_t *pApiVersion) const {
|
|
196
185
|
return pfnNextLayer(pNextLink, pApiVersion);
|
|
197
186
|
}
|
|
198
187
|
#endif
|