diff --git a/@types/webGPU.d.ts b/@types/webGPU.d.ts index 4d8b09d919..80fc89ca80 100644 --- a/@types/webGPU.d.ts +++ b/@types/webGPU.d.ts @@ -716,7 +716,7 @@ interface GPUColorTargetState { */ blend?: GPUBlendState; /** - * Bitmask controlling which channels are are written to when drawing to this color target. + * Bitmask controlling which channels are written to when drawing to this color target. */ writeMask?: GPUColorWriteFlags; } diff --git a/cocos/2d/assembler/graphics/webgl/earcut.ts b/cocos/2d/assembler/graphics/webgl/earcut.ts index 88361f0d40..2f33b6616c 100644 --- a/cocos/2d/assembler/graphics/webgl/earcut.ts +++ b/cocos/2d/assembler/graphics/webgl/earcut.ts @@ -317,7 +317,7 @@ function compareX (a, b): number { return a.x - b.x; } -// find a bridge between vertices that connects hole with an outer ring and and link it +// find a bridge between vertices that connects hole with an outer ring and link it function eliminateHole (hole: Aim, outerNode: Aim | null): void { outerNode = findHoleBridge(hole, outerNode!); if (outerNode) { diff --git a/cocos/render-scene/core/pass.ts b/cocos/render-scene/core/pass.ts index e44086e6c1..b16fd172e3 100644 --- a/cocos/render-scene/core/pass.ts +++ b/cocos/render-scene/core/pass.ts @@ -312,7 +312,7 @@ export class Pass { } /** - * @en Bind a GFX [[gfx.Texture]] the the given uniform binding + * @en Bind a GFX [[gfx.Texture]] the given uniform binding * @zh 绑定实际 GFX [[gfx.Texture]] 到指定 binding。 * @param binding The binding for target uniform of texture type * @param value Target texture @@ -322,7 +322,7 @@ export class Pass { } /** - * @en Bind a GFX [[gfx.Sampler]] the the given uniform binding + * @en Bind a GFX [[gfx.Sampler]] the given uniform binding * @zh 绑定实际 GFX [[gfx.Sampler]] 到指定 binding。 * @param binding The binding for target uniform of sampler type * @param value Target sampler diff --git a/native/cocos/scene/Pass.h b/native/cocos/scene/Pass.h index e714e900ad..b42b9a2db4 100644 --- a/native/cocos/scene/Pass.h +++ b/native/cocos/scene/Pass.h @@ -171,7 +171,7 @@ public: void setUniformArray(uint32_t handle, const MaterialPropertyList &value); /** - * @en Bind a GFX [[Texture]] the the given uniform binding + * @en Bind a GFX [[Texture]] the given uniform binding * @zh 绑定实际 GFX [[Texture]] 到指定 binding。 * @param binding The binding for target uniform of texture type * @param value Target texture @@ -179,7 +179,7 @@ public: void bindTexture(uint32_t binding, gfx::Texture *value, uint32_t index = 0); /** - * @en Bind a GFX [[Sampler]] the the given uniform binding + * @en Bind a GFX [[Sampler]] the given uniform binding * @zh 绑定实际 GFX [[Sampler]] 到指定 binding。 * @param binding The binding for target uniform of sampler type * @param value Target sampler