Commit f9ca23c
Expose Texture::NumLayers via NativeEngine.getTextureLayerCount
Babylon.js side wraps native textures with engine.wrapNativeTexture and
sets InternalTexture properties from the engine bindings. Today the
binding only exposes width and height, so consumers cannot detect that
a wrapped texture is a Texture2DArray and InternalTexture.is2DArray /
.depth stay at their defaults.
Add getTextureLayerCount returning Texture::NumLayers so Babylon.js can
populate is2DArray and depth on the wrapped InternalTexture
automatically, without the host having to thread the layer count
through its own bridge.
[Created by Copilot on behalf of @bghgary]
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8df2d91 commit f9ca23c
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
| |||
1541 | 1542 | | |
1542 | 1543 | | |
1543 | 1544 | | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1544 | 1551 | | |
1545 | 1552 | | |
1546 | 1553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments