-
Notifications
You must be signed in to change notification settings - Fork 3.6k
DumpData: Refactor for glTF export in BN #17365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ot assignable to type '(pixelData: Uint8Array<ArrayBufferLike>, width: number, height: number, mimeType: string, invertY: boolean, quality?: number | undefined) => Promise<...>'.
Type 'unknown' is not assignable to type 'Promise<ArrayBuffer>'.
|
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
|
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17365/merge/index.html#WGZLGJ#4600 Links to test babylon tools with this snapshot: https://playground.babylonjs.com/?snapshot=refs/pull/17365/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/17365/merge#BCU1XR#0 |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
|
Devhost visualization test reporter: |
|
Visualization tests for WebGPU |
|
WebGL2 visualization test reporter: |
|
Devhost visualization test reporter: |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
…sync, which doesn't exist in the core UMD build
|
Devhost visualization test reporter: |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
|
Devhost visualization test reporter: |
|
Devhost visualization test reporter: |
|
Visualization tests for WebGPU |
|
WebGL2 visualization test reporter: |
This PR brings NativeEncoding up to speed with the changes in [BabylonJS #17365](BabylonJS/Babylon.js#17365). It also updates the unit tests accordingly. - Expect input[0] to be an ArrayBufferView, not necessarily a Uint8Array - Include Blob in BabylonNative build - Return Blob from EncodeImageAsync - Don't throw on unsupported MIME type - Use std::byte for clarity
This PR adds the glue code to enable DumpData usage in BN with the glTF exporter.
Changes:
bitmaprendererpath. I initially planned for Native to polyfill this, but that turned out to be not a good idea.