You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NativeEngine: implement updateTextureData (re-enables Test updateTextureData)
updateTextureData previously threw "not implemented" on Native. Implement it so
sub-rectangle texture updates work.
- Add NativeEngine::UpdateTextureData: upload the requested sub-rectangle via
bgfx::updateTexture2D (Texture::Update2D). Validates the JS-controlled rect
against the mip extents, sizes the copy with bgfx::calcTextureSize (no bimg
dependency, so it also works in no-image-loading builds), and mirrors the
vertical flip the base texture upload applies so the sub-rect lines up on
top-left-origin backends (e.g. D3D11).
- Re-enable the "Test updateTextureData" validation test.
Pairs with the Babylon.js change (engine.name = "Native" so name-gated WebGL
_gl access skips Native, plus the updateTextureData override). CI stays red
until a babylonjs npm with that change is published and the dependency bumped.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments