Replace Shader definition from typealias to wrapper for non-android platforms - #2810
Merged
Merged
Conversation
Ivan Matkov (MatkovIvan)
force-pushed
the
ivan.matkov/shader-wrapper
branch
from
March 2, 2026 15:55
88a0064 to
fc95761
Compare
Ivan Matkov (MatkovIvan)
requested review from
Igor Demin (igordmn) and
Victor Kropp (kropp)
March 2, 2026 15:55
Ivan Matkov (MatkovIvan)
marked this pull request as ready for review
March 2, 2026 15:55
Igor Demin (igordmn)
approved these changes
Mar 2, 2026
Victor Kropp (kropp)
approved these changes
Mar 3, 2026
Zahari Zahariev (harryzz)
pushed a commit
to harryzz/compose-multiplatform-core
that referenced
this pull request
Jul 28, 2026
…d platforms (JetBrains#2810) [CMP-9812](https://youtrack.jetbrains.com/issue/CMP-9812) `Shader` wrapper migration for non-android platforms ## Release Notes ### Breaking Changes - Multiple Platforms - To decouple common Compose graphics APIs from direct Skia/Skiko types, non-Android `Shader` is now a dedicated Compose wrapper type. Since it's not an ABI-compatible change, you might need to update some libraries that use this API to newer, compatible versions. Migration: - If you pass raw Skia/Skiko shaders into Compose APIs, wrap with `SkShader.asComposeShader()`. - If you need low-level Skia/Skiko access from Compose Shader, use `Shader.skiaShader` extension.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CMP-9812
Shaderwrapper migration for non-android platformsRelease Notes
Breaking Changes - Multiple Platforms
Shaderis now a dedicated Compose wrapper type. Since it's not an ABI-compatible change, you might need to update some libraries that use this API to newer, compatible versions. Migration:SkShader.asComposeShader().Shader.skiaShaderextension.