浏览代码

Doc Linter

Sebastien Vandenberghe 6 年之前
父节点
当前提交
dc291c479a
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 0
      src/Engines/webgpuEngine.ts
  2. 2 3
      src/Meshes/abstractMesh.ts

+ 2 - 0
src/Engines/webgpuEngine.ts

@@ -175,6 +175,8 @@ export class WebGPUEngine extends Engine {
 
     /**
      * Initializes the WebGPU context and dependencies.
+     * @param shadercOptions Defines the ShaderC compiler options if necessary
+     * @returns a promise notifying the readiness of the engine.
      */
     public initEngineAsync(shadercOptions: any = null): Promise<void> {
         return (window as any).Shaderc(shadercOptions)

+ 2 - 3
src/Meshes/abstractMesh.ts

@@ -679,14 +679,12 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
 
     /**
      * Transfer the mesh values to its UBO.
+     * @param world The world matrix associated with the mesh
      */
     public transferToEffect(world: Matrix): void {
         const ubo = this._uniformBuffer;
 
-        // TODO. Instances.
-        // if (!defines.INSTANCES) {
         ubo.updateMatrix("world", world);
-        // }
         ubo.updateFloat("visibility", this._visibility);
 
         // TODO. Bones.
@@ -696,6 +694,7 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
 
     /**
      * Gets the mesh uniform buffer.
+     * @return the uniform buffer of the mesh.
      */
     public getMeshUniformBuffer(): UniformBuffer {
         return this._uniformBuffer;