-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework vertex buffer code to handle non-normalized integer attributes…
… correctly (#1369) Related PR on the Babylon.js side: BabylonJS/Babylon.js#14862 - Add some visual tests that ensure interleaved buffers and updating buffers work properly. See [playground](https://playground.babylonjs.com/#AVFNTW#5). - Add CesiumMan test which uses the same buffer for non-interleaved attributes. - Update playground runner script to support async `createScene` functions. - Update validation_native.js to support newer playgrounds, copied from JS visual test code. - Disable async shader compilation in validation (visual) tests. - Update Babylon.js package to 6.46.1 which includes changes from the PR noted at the top. - Changed the `m_deviceId` and `m_deviceContext` to be more consistent with all classes. - Modified the index and vertex buffer code to handle errors better. - Move all vertex buffer logic from vertex array into vertex buffer to keep track of all promoted to float attributes. - Update vertex buffer logic to handle promote to float and keep track of the streams for setting and updating later.
- Loading branch information
Showing
22 changed files
with
671 additions
and
452 deletions.
There are no files selected for viewing
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
if (typeof createScene === "function") { | ||
var engine = new BABYLON.NativeEngine({adaptToDeviceRatio: true}); | ||
var scene = createScene(); | ||
engine.runRenderLoop(function () { | ||
scene.render(); | ||
}); | ||
} | ||
if (scene.then) { | ||
scene.then(function (scene) { | ||
engine.runRenderLoop(function () { | ||
scene.render(); | ||
}); | ||
}) | ||
} else { | ||
engine.runRenderLoop(function () { | ||
scene.render(); | ||
}); | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.