Skip to content

Commit

Permalink
Update @engineInternal comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Oct 21, 2024
1 parent 865f89b commit 717275d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cocos/2d/renderer/batcher-2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,9 @@ export class Batcher2D implements IBatcher {
// TODO: Not a good way to do the job
// Although it's a private method, it is invoked in text-processing.ts and texture-base.ts
// by legacyCC.director.root.batcher2D._releaseDescriptorSetCache
// @engineInternal
/**
* @engineInternal
*/
public _releaseDescriptorSetCache (textureHash: number | Texture | null, sampler: Sampler | null = null): void {
if (JSB) {
this._nativeObj.releaseDescriptorSetCache(textureHash as Texture, sampler as Sampler);
Expand Down
4 changes: 3 additions & 1 deletion cocos/asset/asset-manager/asset-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ export class AssetManager {

private constructor () {}

// @engineInternal
/**
* @engineInternal
*/
public getReleaseManager (): ReleaseManager {
return this._releaseManager$;
}
Expand Down
4 changes: 3 additions & 1 deletion cocos/game/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ export class Game extends EventTarget {
}

// @Methods
// @engineInternal
/**
* @engineInternal
*/
public _calculateDT (useFixedDeltaTime: boolean): number {
this._useFixedDeltaTime$ = useFixedDeltaTime;

Expand Down
6 changes: 4 additions & 2 deletions cocos/ui/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,10 @@ export class View extends Eventify(System) {
return out;
}

// Convert location in Cocos screen coordinate to location in UI space
// @engineInternal
/**
* Convert location in Cocos screen coordinate to location in UI space
* @engineInternal
*/
public _convertToUISpace (point: Vec2): void {
const viewport = this._viewportRect$;
point.x = (point.x - viewport.x) / this._scaleX$;
Expand Down

0 comments on commit 717275d

Please sign in to comment.