Repository navigation
chore(automation): Sync master → feature/breakingchanges - #23682
github-actions[bot] merged 206 commits into
Conversation
- Add missing `---` terminator after Prerequisites tab group (line 39) - Add missing `---` terminator after Log Everything tab group (line 203) - Fix [!NOTE] admonitions to use blockquote syntax (`> [!NOTE]`)
I wonder if two `[!NOTE]` blocks in a row is valid…
When a control and a markup extension sharing the same base name exist in the
same namespace (e.g. FluentIcon + FluentIconExtension), the XAML generator
misdetected the control element as a markup extension. Markup-extension type
resolution tries the "Extension" suffix first, so the element <local:FluentIcon>
resolved to FluentIconExtension and binding-code generation on the control's
properties was suppressed.
The "Extension" suffix fallback is a markup-extension *usage* feature
({local:Foo} resolves to FooExtension) and must not apply when checking whether
an *element* is a markup extension. GetMarkupExtensionType now takes an
allowExtensionSuffix flag; the owner-element check in HasMarkupExtension passes
false, while every markup-extension usage site keeps the WinUI suffix-first
resolution unchanged so {local:Foo} still resolves to FooExtension.
Fixes #21992
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Kkyh8YiVNW2ACz3XgW1TfQ
Implements INativeOpenGLWrapper for the Skia WebAssembly Browser runtime so GLCanvasElement works on the wasm target. The wrapper creates an offscreen WebGL 2.0 context and dispatches Silk.NET's unmanaged GL function calls through a JS bridge that maps each GL entry point onto WebGL2 (with explicit warn/throw stubs for desktop-GL-only entry points like glPolygonMode, glTexParameterIuiv, etc.). Workarounds for wasm-specific constraints: - mono-wasm interp trampolines cap [UnmanagedCallersOnly] at 8 args (dotnet/runtime#109338); 9+ arg GL functions (glTexImage2D and friends) route through native C shims in uno_gl_shim.c. - Float-bearing trampoline cookies (VFFFF / VIF / VIFFFF / ...) are only discovered by the head assembly's [DllImport] scan, so a signature-primer .cs is injected via the .targets file. Adds 9 SamplesApp pages stress-testing the public Silk.NET surface (simple triangle, rotating cube, textured quad, cubemap, instanced quads, post-process FBO, stencil mask, uniform buffers, transform feedback). Also fixes a Width-vs-Height typo in the renderbuffer depth/stencil storage path that was producing GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS on non-square render targets.
The wasm SDK auto-registers every NativeFileReference's base name as a
static PInvoke module (same mechanism that binds DllImport("unoicu") to
unoicu.a), so the uno_gl_shim getters can be reached with plain
[DllImport("uno_gl_shim")] - the Module._uno_get_*_ptr JS roundtrip and
its TS helper are unnecessary.
Also move the trampoline signature primer from a head-injected .cs file
into the framework assembly: ManagedToNativeGenerator scans library
assemblies too (the earlier "head assembly only" conclusion was a stale
m2n_cache.txt artifact). Consuming apps now only receive the uno_gl_shim.c
native compile item, no injected C# sources.
Fixes a latent ordering bug while at it: the WasmShellNativeCompile item
was added in a target (_UnoAdjustSkiaSharpDependency), but
Uno.Wasm.Bootstrap translates WasmShellNativeCompile to NativeFileReference
in _UnoAdjustCompatibility, which can run first on clean builds - the shim
was then silently dropped from the native link. The items are now declared
statically so they exist before any target runs.
glTexImage2D was the first >8-arg shim and kept its own verbose layout in uno_gl_shim.c and its managed machinery in WasmGLFunctions.cs while its eight peers lived in WasmGLFunctions.LargeArityShims.cs. Normalize it to the shared pattern: compact C shim, struct + packed dispatcher + JSImport alongside the others, and rename the one inconsistent getter (uno_get_gltexImage2D_ptr -> uno_get_glTexImage2D_ptr).
…asElement WebGlBrowserRenderer (onscreen Skia surface) and WasmNativeOpenGLWrapper (GLCanvasElement's offscreen contexts) each carried their own copy of the window.GL guard, context-attributes block, and WebGL 1.0 fallback. Extract EmscriptenWebGL.createContext with shared defaults; call sites now only state their actual differences (antialias for the onscreen surface, preserveDrawingBuffer for GLCanvasElement readbacks).
FrameBufferDetails reserved its framebuffer name with glGenBuffers, which draws from the buffer-object namespace, and then bind-created a framebuffer from it. glGenFramebuffers is then free to hand out the same name to user code - observed on Intel drivers, where a user FBO created in Init aliased the framework's FBO and corrupted its color attachment, producing black output (e.g. in the PostProcess render-to-texture sample on Win32).
Two issues exposed by exercising more of the GL surface: - The >8-arg C shims are invoked by Silk.NET via calli with 9, 10, or 11 i32 arguments, and the interp->native trampolines for those shapes also only exist if a matching [DllImport] is discovered at build time. 9 ints happened to be primed by other libraries' pinvokes; 10 and 11 were not, so the first glTexImage3D/glTexSubImage3D call aborted the runtime (aot-runtime-wasm.c trampoline failure), killing every GLCanvasElement loaded afterwards. Add explicit V9I/V10I/V11I primers. - WebGL2 dropped the GetProgramiv/GetShaderiv *_LENGTH pnames (strings are returned directly), but Silk.NET's string-returning helpers (GetActiveUniform, GetShaderInfoLog, ...) query them to size their buffers, getting 0 and producing empty strings. Compute INFO_LOG_LENGTH, ACTIVE_UNIFORM/ATTRIBUTE_MAX_LENGTH, TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH and SHADER_SOURCE_LENGTH in the JS shim.
Extends the GL stress-test set to previously-uncovered API areas: - MRTBlit: TexStorage2D, DrawBuffers + dual-output fragment shader, per-attachment ClearBuffer, 4x MSAA renderbuffer resolved via BlitFramebuffer (a >8-arg C shim on wasm), separate READ/DRAW framebuffer bindings, InvalidateFramebuffer. - IndexedMesh: DrawElements with a VAO-captured EBO, GetAttribLocation, DepthFunc/DepthMask, CullFace/FrontFace, scissored clears, LineWidth, DisableVertexAttribArray + constant vertex attribute. - TextureArray: TexStorage3D + per-layer TexSubImage3D and per-frame TexSubImage2D (both C shims), GenerateMipmap, PixelStorei, and the sampler-object family. - QuerySync: ANY_SAMPLES_PASSED occlusion query polled across frames (visualized by an indicator that alternates as a bar occludes the probe), FenceSync/ClientWaitSync/GetSync, array uniforms, GetUniform readback, and Init-time program introspection sanity checks.
An exception thrown from user Init/RenderOverride/OnDestroy (or from the framebuffer setup) previously escaped into the Loaded event or the render dispatch. Besides throwing once per frame, an escape during Loaded corrupts EventManager's loaded-event queue, permanently breaking the Loaded event for every element loaded afterwards in the session. Catch the exceptions at the GLCanvasElement boundary instead: log an error, set IsGLInitialized to false for Init-time failures (matching the property's documented contract), and make Invalidate()/Render() no-ops until the element is reloaded.
Drop the private _renderingStopped flag in favor of the existing IsGLInitialized property: failures set it to false and the guards check for == false (null during loading still passes), so the failure state is also observable by apps. Document the extended semantics.
- glCompressedTexImage2D/glCopyTexImage2D are the first direct-dispatch entries reached via an 8-int calli, and glClearBufferfi the first with an (int,int,float,int) shape; neither trampoline cookie was primed, aborting the runtime on first use. Add uno_dummy_V8I and uno_dummy_VIIFI. - The emulated INFO_LOG_LENGTH/SHADER_SOURCE_LENGTH pnames returned length+1 even for empty strings, but GL semantics return 0 when there is no log/source; the off-by-one made Silk.NET's GetShaderInfoLog helper throw on shaders with an empty info log.
- CompressedCopy: ETC2 CompressedTexImage2D/3D + CompressedTexSubImage2D/3D (with hand-built solid-color blocks and an uncompressed fallback for desktop GL < 4.3), CopyTexImage2D/CopyTexSubImage2D/CopyTexSubImage3D from an FBO, FramebufferTextureLayer, InvalidateSubFramebuffer, GetStringi. - UniformZoo: self-checking pass over every uniform setter variant (i/ui/f scalar, vector, array, and all nine matrix shapes) with GetUniform readbacks, uniform-block introspection, the glIs* family, and the parameter-getter zoo. - IntAttribsBlend: VertexAttribIPointer, constant attributes (f/fv/i/iv/ ui/uiv), GetVertexAttrib*, DrawElementsInstanced/DrawRangeElements, BlendColor/BlendFuncSeparate/BlendEquationSeparate, the stencil Separate entry points (with WebGL2's matching front/back ref+mask requirement), PolygonOffset, SampleCoverage. - TFObjects: named transform-feedback object with BindBufferRange and a Pause/Resume decoy draw, GetTransformFeedbackVarying, CopyBufferSubData, ClearBufferfi/ClearBufferiv, FenceSync + server-side WaitSync.
WebGL2 (unlike desktop GL) rejects every draw with INVALID_OPERATION while the front and back stencil reference, value mask, or write mask differ; only the funcs/ops may vary per face. The browser's per-draw error gives no hint about the cause, so record the mismatch when stencil state is set and emit a one-shot explanatory warning at draw time while the stencil test is enabled. The check is deferred to draw time because transient divergence between two consecutive Separate calls (set front, then back) is legitimate.
Silk.NET.OpenGL is the desktop binding: gl.ClearDepth(double) and gl.DepthRange(double, double) resolve the desktop entry-point names, which WebGL2 does not have (it follows the ES lineage where these were renamed glClearDepthf/glDepthRangef with float parameters). The lookup returned zero and the first call failed with a generic symbol-not-found error - and ClearDepth(1.0) is boilerplate in most ported GL code. Register the desktop names as double-taking entries forwarding to the existing f-variant implementations (the narrowing is exactly the ES semantics; no depth buffer exceeds f32 precision). Adds the VD/VDD trampoline cookies for the double-bearing calli shapes and exercises the aliases from the IndexedMesh sample.
glGetStringi(GL_EXTENSIONS, i) was already implemented over getSupportedExtensions, but it was unreachable in practice: the desktop enumeration idiom first queries glGetIntegerv(GL_NUM_EXTENSIONS), which WebGL2's getParameter rejects (INVALID_ENUM, reported as 0), so the loop iterated zero times. Report getSupportedExtensions().length for NUM_EXTENSIONS - same adaptation pattern as MAJOR/MINOR_VERSION - and exercise the full enumeration from the UniformZoo sample's checks.
Systematic pass over every pname/cap the shim's getters and toggles can receive but WebGL2 rejects or answers differently, after NUM_EXTENSIONS turned out to be the third instance of the same pattern: - Scalar pnames WebGL2's getParameter rejects: emulate NUM_COMPRESSED_TEXTURE_FORMATS (count of COMPRESSED_TEXTURE_FORMATS), SHADER_COMPILER (always 1), and report 0/none for the shader/program binary format queries and CONTEXT_FLAGS. - Object-binding pnames missing from the reverse-map: READ_FRAMEBUFFER, TEXTURE_3D/2D_ARRAY, SAMPLER, TRANSFORM_FEEDBACK, PIXEL_PACK/UNPACK and COPY_READ/WRITE buffer bindings all fell through to the generic path and returned 0 even when an object was bound. - glGetString(GL_EXTENSIONS): ES3 keeps the legacy combined string; join getSupportedExtensions instead of caching "" forever. - Capabilities WebGL2 has no toggle for: MULTISAMPLE, SEAMLESS cubemaps, PROGRAM_POINT_SIZE and PRIMITIVE_RESTART(_FIXED_INDEX) are always-on (enable is a no-op, disable warns once); FRAMEBUFFER_SRGB, LINE/ POLYGON_SMOOTH and DEPTH_CLAMP are unavailable (enable warns once). glIsEnabled answers truthfully for all of them instead of raising INVALID_ENUM. Array-valued pnames (VIEWPORT etc.) and the indexed getters were audited and found correct. UniformZoo now verifies each fixed class.
glTexImage3D was the last of the nine >8-arg C shims with no live coverage (the samples all use the immutable TexStorage3D path), and the TEXTURE_3D target itself was unexercised everywhere. Add a hue-gradient volume to the TextureArray sample's bottom-right pane covering both pointer modes of the shim - a null allocation followed by a legal re-specification with data - plus a TexSubImage3D sub-box overwrite against mutable storage, sampler3D trilinear filtering through the depth slices (animated w sweep), TEXTURE_WRAP_R, and the TEXTURE_BINDING_3D reverse-map query.
Integer texture formats were the last untested format family: nothing rendered into RGBA8UI/RGBA8I attachments, sampled through usampler2D/isampler2D, or exercised glClearBufferuiv (which only applies to unsigned-integer color attachments) and glClearBufferiv on a color attachment. The new sample renders spinning triangles with uvec4/ivec4 fragment outputs into both formats, clears them with time-cycling integer values each frame, and visualizes the texels by normalizing to floats.
With a PIXEL_UNPACK_BUFFER or PIXEL_PACK_BUFFER bound, the pixels/data argument of the TexImage*/TexSubImage*/CompressedTex*/ReadPixels family is a byte offset into the bound buffer, not a client-memory pointer. The shim always treated it as a heap pointer, so PBO-sourced uploads silently read garbage from linear memory. Branch on the PBO binding and use WebGL2's dedicated GLintptr overloads instead. Also register glGetBufferSubData (mapped to WebGL2's getBufferSubData), which desktop code uses to read packed pixels back to CPU memory - WebGL2 has no buffer mapping, so this is the only readback path.
Uploads a checkerboard from a PIXEL_UNPACK_BUFFER (TexImage2D with offset 0), reads it back through an FBO into a PIXEL_PACK_BUFFER and glGetBufferSubData with a byte-exact Init-time comparison, then scrolls a rainbow band through the texture sourced from non-zero offsets within the unpack PBO each frame.
Unlike real OpenGL ES 3.0, WebGL 2.0 dropped mandatory ETC2/EAC support (desktop GPUs cannot decode it): the formats are only available through WEBGL_compressed_texture_etc, which desktop browsers typically do not expose. The CompressedCopy sample assumed the ES3 guarantee from the version string, so on desktop browsers the compressed uploads were rejected and the ETC2 second of the cycle rendered black. Detect the extension on WebGL (and keep the ES3 guarantee only for real ES), falling back to uncompressed uploads otherwise.
Implements INativeOpenGLWrapper for the Skia Android runtime using the managed Android.Opengl.EGL14 binding: an offscreen 1x1 pbuffer surface and an OpenGL ES 3.0 context (GLCanvasElement's minimum). GetProcAddress resolves core entry points by dlsym on libGLESv3.so/libGLESv2.so, with a direct libEGL.so eglGetProcAddress P/Invoke for extension functions (android.opengl.EGL14 doesn't expose eglGetProcAddress). Registered per XamlRoot in AndroidHost. Also handles the GLES pixel readback: glReadPixels with BGRA is the optional GL_EXT_read_format_bgra extension on GLES, so GLCanvasElement now probes for it on Android and falls back to RGBA + an R/B swap into the BGRA back buffer. Desktop GL/ANGLE (BGRA core) and WASM (its JS shim swaps internally) keep the BGRA fast path unchanged.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23682/wasm-skia-net9/index.html |
On drop, VirtualizingPanelLayout.CompleteReorderingItem called Refresh() unconditionally, recycling every materialized container and re-dealing them to different data, so every row re-templated (the whole-list flicker). Switch to LightRefresh() (re-measure only): it re-arranges items to their final positions while preserving container identity, matching the light path the Android layout already uses by default. Add runtime tests for the four reorder paths (Move, RemoveAt+Insert, real drag-drop, and Refresh isolation). The drag-drop test fails before this change and passes after; the existing reorder/drag tests still pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Reword the CaptureContainersByItem doc comment: the helper no longer has a GridView caller, and note that ObservableCollection<string> binds to the IEnumerable<object> parameter via IEnumerable<out T> covariance. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
chore(docs): External Docs Update - master
|
The build 222342 found UI Test snapshots differences: Details
|
|
|
…ync/feature/breakingchanges
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
test: Verify TextBox KeyDown event fires when key is pressed
fix: Map FileAccessMode to appropriate FileMode in StorageFile.OpenStreamAsync
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GKBgQoAmRmaFoXXZr93iLB
|
The build 222438 found UI Test snapshots differences: Details
|
test: Add regression test for #11914
…ed-attribute fix(AsyncInfo): Remove incorrect `NotImplemented` attribute from `AsyncInfo.Run<TResult>`
…-picture feat(skia): Expose frame data on Rendering event
…view-dnd-reorder-flicker fix: Reuse ListView containers on drag-drop reorder
…ync/feature/breakingchanges
…ature/breakingchanges
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23682/wasm-skia-net9/index.html |
|
The build 222589 found UI Test snapshots differences: Details
|
|
|
Automated sync — merges the latest
masterintofeature/breakingchanges.Incoming commits from master: 188
Range:
907f6173b2..9c61cd6af3Merge method: merge commit (preserves ancestry so future syncs stay minimal)
Auto-merge: enabled — lands once required CI is green and a reviewer approves.
Maintained automatically; updates in place. Generated by this run.