@babylonjs/core 6.33.2 → 6.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/Animations/animation.js +1 -1
  2. package/Animations/animation.js.map +1 -1
  3. package/Buffers/storageBuffer.d.ts +2 -1
  4. package/Buffers/storageBuffer.js +3 -2
  5. package/Buffers/storageBuffer.js.map +1 -1
  6. package/Cameras/arcRotateCamera.js +1 -1
  7. package/Cameras/arcRotateCamera.js.map +1 -1
  8. package/Engines/Extensions/engine.storageBuffer.d.ts +2 -1
  9. package/Engines/Extensions/engine.storageBuffer.js.map +1 -1
  10. package/Engines/WebGPU/Extensions/engine.storageBuffer.js +14 -5
  11. package/Engines/WebGPU/Extensions/engine.storageBuffer.js.map +1 -1
  12. package/Engines/thinEngine.js +2 -2
  13. package/Engines/thinEngine.js.map +1 -1
  14. package/Engines/webgpuEngine.js +4 -0
  15. package/Engines/webgpuEngine.js.map +1 -1
  16. package/FlowGraph/flowGraphBlock.js +1 -21
  17. package/FlowGraph/flowGraphBlock.js.map +1 -1
  18. package/FlowGraph/flowGraphExecutionBlock.d.ts +1 -0
  19. package/FlowGraph/flowGraphExecutionBlock.js +20 -0
  20. package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
  21. package/Gizmos/axisScaleGizmo.d.ts +1 -0
  22. package/Gizmos/axisScaleGizmo.js +12 -0
  23. package/Gizmos/axisScaleGizmo.js.map +1 -1
  24. package/Materials/uniformBuffer.d.ts +4 -1
  25. package/Materials/uniformBuffer.js +5 -2
  26. package/Materials/uniformBuffer.js.map +1 -1
  27. package/Meshes/abstractMesh.js +3 -1
  28. package/Meshes/abstractMesh.js.map +1 -1
  29. package/Physics/v2/index.d.ts +1 -0
  30. package/Physics/v2/index.js +1 -0
  31. package/Physics/v2/index.js.map +1 -1
  32. package/Physics/v2/ragdoll.d.ts +107 -0
  33. package/Physics/v2/ragdoll.js +228 -0
  34. package/Physics/v2/ragdoll.js.map +1 -0
  35. package/Shaders/ShadersInclude/pbrBlockSubSurface.js +3 -2
  36. package/Shaders/ShadersInclude/pbrBlockSubSurface.js.map +1 -1
  37. package/package.json +1 -1
@@ -1952,6 +1952,10 @@ export class WebGPUEngine extends Engine {
1952
1952
  this._commandBuffers[0] = this._uploadEncoder.finish();
1953
1953
  this._commandBuffers[1] = this._renderEncoder.finish();
1954
1954
  this._device.queue.submit(this._commandBuffers);
1955
+ // Now that the command buffers have been submitted, we can reset the ubo as we can reuse the same GPU buffer(s)
1956
+ for (let i = 0; i < this._uniformBuffers.length; ++i) {
1957
+ this._uniformBuffers[i]._checkNewFrame(true);
1958
+ }
1955
1959
  this._uploadEncoder = this._device.createCommandEncoder(this._uploadEncoderDescriptor);
1956
1960
  this._renderEncoder = this._device.createCommandEncoder(this._renderEncoderDescriptor);
1957
1961
  this._timestampQuery.startFrame(this._uploadEncoder);