Skip to content

Conversation

@finscn
Copy link
Contributor

@finscn finscn commented Sep 7, 2025

导出 PixelFormat, TextureFilter, Filter, WrapMode 枚举对象

实现该需求 #18992

Re: #

Changelog


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

导出 PixelFormat, TextureFilter, Filter, WrapMode 枚举对象
@github-actions
Copy link

github-actions bot commented Sep 7, 2025

Code Size Check Report

Wechat (WASM) Before After Diff
2D Empty (legacy pipeline) 1009778 bytes 1009863 bytes ⚠️ +85 bytes
2D All (legacy pipeline) 2675337 bytes 2675454 bytes ⚠️ +117 bytes
2D All (new pipeline) 2766979 bytes 2767099 bytes ⚠️ +120 bytes
(2D + 3D) All 10023949 bytes 10024066 bytes ⚠️ +117 bytes
Web (WASM + ASMJS) Before After Diff
(2D + 3D) All 16843011 bytes 16843128 bytes ⚠️ +117 bytes

Interface Check Report

! WARNING this pull request has changed these public interfaces:

@@ -29087,9 +29087,9 @@
         /**
          * @en The pixel format of the image.
          * @zh 此图像资源的像素格式。
          */
-        get format(): __private._cocos_asset_assets_asset_enum__PixelFormat;
+        get format(): PixelFormat;
         /**
          * @en Whether the image is in compressed texture format.
          * @zh 此图像资源是否为压缩像素格式。
          */
@@ -29160,9 +29160,9 @@
          * @param baseLevel Mipmap base level
          * @param maxLevel Mipmap maximum level
          * @deprecated since v1.0 please use [[reset]] instead
          */
-        create(width: number, height: number, format?: __private._cocos_asset_assets_asset_enum__PixelFormat, mipmapLevel?: number, baseLevel?: number, maxLevel?: number): void;
+        create(width: number, height: number, format?: PixelFormat, mipmapLevel?: number, baseLevel?: number, maxLevel?: number): void;
         toString(): string;
         updateMipmaps(firstLevel?: number, count?: number | undefined): void;
         /**
          * @en If the level 0 mipmap image is a HTML element, then return it, otherwise return null.
@@ -29819,8 +29819,282 @@
          */
         readPixels(x?: number, y?: number, width?: number, height?: number, buffer?: Uint8Array): Uint8Array | null;
     }
     /**
+     * @en
+     * The texture pixel format, default value is RGBA8888,<br>
+     * you should note that textures loaded by normal image files (png, jpg) can only support RGBA8888 format,<br>
+     * other formats are supported by compressed file types or raw data.
+     * @zh
+     * 纹理像素格式,默认值为RGBA8888,<br>
+     * 你应该注意到普通图像文件(png,jpg)加载的纹理只能支持RGBA8888格式,<br>
+     * 压缩文件类型或原始数据支持其他格式。
+     */
+    export enum PixelFormat {
+        /**
+         * @en
+         * 16-bit pixel format containing red, green and blue channels
+         * @zh
+         * 包含 RGB 通道的 16 位纹理。
+         */
+        RGB565 = 47,
+        /**
+         * @en
+         * 16-bit pixel format containing red, green, blue channels with 5 bits per channel and one bit alpha channel: RGB5A1
+         * @zh
+         * 包含 RGB(分别占 5 bits)和 1 bit 的 alpha 通道的 16 位纹理:RGB5A1。
+         */
+        RGB5A1 = 49,
+        /**
+         * @en
+         * 16-bit pixel format containing red, green, blue and alpha channels: RGBA4444
+         * @zh
+         * 包含 RGBA 通道的 16 位纹理:RGBA4444。
+         */
+        RGBA4444 = 50,
+        /**
+         * @en
+         * 24-bit pixel format containing red, green and blue channels: RGB888
+         * @zh
+         * 包含 RGB 通道的 24 位纹理:RGB888。
+         */
+        RGB888 = 24,
+        /**
+         * @en
+         * 32-bit float pixel format containing red, green and blue channels: RGBA32F
+         * @zh
+         * 包含 RGB 通道的 32 位浮点数像素格式:RGBA32F。
+         */
+        RGB32F = 32,
+        /**
+         * @en
+         * 32-bit pixel format containing red, green, blue and alpha channels: RGBA8888
+         * @zh
+         * 包含 RGBA 四通道的 32 位整形像素格式:RGBA8888。
+         */
+        RGBA8888 = 35,
+        /**
+         * @en
+         * 32-bit pixel format containing blue, green, red, and alpha channels: BGRA8888
+         * @zh
+         * 包含 BGRA 四通道的 32 位整形像素格式:BGRA8888。
+         */
+        BGRA8888 = 36,
+        /**
+         * @en
+         * 32-bit float pixel format containing red, green, blue and alpha channels: RGBA32F
+         * @zh
+         * 32位浮点数像素格式:RGBA32F。
+         */
+        RGBA32F = 44,
+        /**
+         * @en
+         * 8-bit pixel format used as masks
+         * @zh
+         * 用作蒙版的8位纹理。
+         */
+        A8 = 1,
+        /**
+         * @en
+         * 8-bit intensity pixel format
+         * @zh
+         * 8位强度纹理。
+         */
+        I8 = 2,
+        /**
+         * @en
+         * 16-bit pixel format used as masks
+         * @zh
+         * 用作蒙版的16位纹理。
+         */
+        AI8 = 3,
+        /**
+         * @en A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
+         * @zh 包含 RGB 通道的 PVR 2BPP 压缩纹理格式
+         */
+        RGB_PVRTC_2BPPV1 = 83,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
+         * @zh 包含 RGBA 通道的 PVR 2BPP 压缩纹理格式
+         */
+        RGBA_PVRTC_2BPPV1 = 84,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
+         * RGB_A_PVRTC_2BPPV1 texture is a 2x height RGB_PVRTC_2BPPV1 format texture.
+         * It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas.
+         * @zh 包含 RGBA 通道的 PVR 2BPP 压缩纹理格式
+         * 这种压缩纹理格式贴图的高度是普通 RGB_PVRTC_2BPPV1 贴图高度的两倍,使用上半部分作为原始 RGB 通道数据,下半部分用来存储透明通道数据。
+         */
+        RGB_A_PVRTC_2BPPV1 = 1024,
+        /**
+         * @en A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
+         * @zh 包含 RGB 通道的 PVR 4BPP 压缩纹理格式
+         */
+        RGB_PVRTC_4BPPV1 = 85,
+        /**
+         * @en A pixel format containing red, green, blue and alpha channels that is PVR 4bpp compressed.
+         * @zh 包含 RGBA 通道的 PVR 4BPP 压缩纹理格式
+         */
+        RGBA_PVRTC_4BPPV1 = 86,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
+         * RGB_A_PVRTC_4BPPV1 texture is a 2x height RGB_PVRTC_4BPPV1 format texture.
+         * It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas.
+         * @zh 包含 RGBA 通道的 PVR 4BPP 压缩纹理格式
+         * 这种压缩纹理格式贴图的高度是普通 RGB_PVRTC_4BPPV1 贴图高度的两倍,使用上半部分作为原始 RGB 通道数据,下半部分用来存储透明通道数据。
+         */
+        RGB_A_PVRTC_4BPPV1 = 1025,
+        /**
+         * @en A pixel format containing red, green, and blue channels that is ETC1 compressed.
+         * @zh 包含 RGB 通道的 ETC1 压缩纹理格式
+         */
+        RGB_ETC1 = 72,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ETC1 compressed.
+         * @zh 包含 RGBA 通道的 ETC1 压缩纹理格式
+         */
+        RGBA_ETC1 = 1026,
+        /**
+         * @en A pixel format containing red, green, and blue channels that is ETC2 compressed.
+         * @zh 包含 RGB 通道的 ETC2 压缩纹理格式
+         */
+        RGB_ETC2 = 73,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
+         * @zh 包含 RGBA 通道的 ETC2 压缩纹理格式
+         */
+        RGBA_ETC2 = 77,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 4x4 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 4x4
+         */
+        RGBA_ASTC_4x4 = 89,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 5x4 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 5x4
+         */
+        RGBA_ASTC_5x4 = 90,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 5x5 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 5x5
+         */
+        RGBA_ASTC_5x5 = 91,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 6x5 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 6x5
+         */
+        RGBA_ASTC_6x5 = 92,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 6x6 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 6x6
+         */
+        RGBA_ASTC_6x6 = 93,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x5 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x5
+         */
+        RGBA_ASTC_8x5 = 94,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x6 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x6
+         */
+        RGBA_ASTC_8x6 = 95,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x8 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x8
+         */
+        RGBA_ASTC_8x8 = 96,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x5 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x5
+         */
+        RGBA_ASTC_10x5 = 97,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x6 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x6
+         */
+        RGBA_ASTC_10x6 = 98,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x8 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x8
+         */
+        RGBA_ASTC_10x8 = 99,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x10 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x10
+         */
+        RGBA_ASTC_10x10 = 100,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 12x10 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 12x10
+         */
+        RGBA_ASTC_12x10 = 101,
+        /**
+         * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 12x12 block size.
+         * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 12x12
+         */
+        RGBA_ASTC_12x12 = 102
+    }
+    /**
+     * @en
+     * The texture filter mode
+     * @zh
+     * 纹理过滤模式。
+     */
+    export enum TextureFilter {
+        NONE = 0,
+        /**
+         * @en
+         * Specifies linear filtering.
+         * @zh
+         * 线性过滤模式。
+         */
+        LINEAR = 2,
+        /**
+         * @en
+         * Specifies nearest filtering.
+         * @zh
+         * 临近过滤模式。
+         */
+        NEAREST = 1
+    }
+    /**
+     * @en
+     * The texture wrap mode.
+     * @zh
+     * 纹理环绕方式。
+     */
+    export enum WrapMode {
+        /**
+         * @en
+         * Specifies that the repeat warp mode will be used.
+         * @zh
+         * 指定环绕模式:重复纹理图像。
+         */
+        REPEAT = 0,
+        /**
+         * @en
+         * Specifies that the clamp to edge warp mode will be used.
+         * @zh
+         * 指定环绕模式:纹理边缘拉伸效果。
+         */
+        CLAMP_TO_EDGE = 2,
+        /**
+         * @en
+         * Specifies that the mirrored repeat warp mode will be used.
+         * @zh
+         * 指定环绕模式:以镜像模式重复纹理图像。
+         */
+        MIRRORED_REPEAT = 1,
+        /**
+         * @en
+         * Specifies that the  clamp to border wrap mode will be used.
+         * @zh
+         * 指定环绕模式:超出纹理坐标部分以用户指定颜色填充。
+         */
+        CLAMP_TO_BORDER = 3
+    }
+    /**
      * @en The script asset base class
      * @zh 脚本资源基类。
      */
     export class Script extends Asset {
@@ -62838,282 +63112,8 @@
         export interface _cocos_2d_assets_sprite_atlas__ISpriteFrameList {
             [key: string]: SpriteFrame | null;
         }
         /**
-         * @en
-         * The texture pixel format, default value is RGBA8888,<br>
-         * you should note that textures loaded by normal image files (png, jpg) can only support RGBA8888 format,<br>
-         * other formats are supported by compressed file types or raw data.
-         * @zh
-         * 纹理像素格式,默认值为RGBA8888,<br>
-         * 你应该注意到普通图像文件(png,jpg)加载的纹理只能支持RGBA8888格式,<br>
-         * 压缩文件类型或原始数据支持其他格式。
-         */
-        export enum _cocos_asset_assets_asset_enum__PixelFormat {
-            /**
-             * @en
-             * 16-bit pixel format containing red, green and blue channels
-             * @zh
-             * 包含 RGB 通道的 16 位纹理。
-             */
-            RGB565 = 47,
-            /**
-             * @en
-             * 16-bit pixel format containing red, green, blue channels with 5 bits per channel and one bit alpha channel: RGB5A1
-             * @zh
-             * 包含 RGB(分别占 5 bits)和 1 bit 的 alpha 通道的 16 位纹理:RGB5A1。
-             */
-            RGB5A1 = 49,
-            /**
-             * @en
-             * 16-bit pixel format containing red, green, blue and alpha channels: RGBA4444
-             * @zh
-             * 包含 RGBA 通道的 16 位纹理:RGBA4444。
-             */
-            RGBA4444 = 50,
-            /**
-             * @en
-             * 24-bit pixel format containing red, green and blue channels: RGB888
-             * @zh
-             * 包含 RGB 通道的 24 位纹理:RGB888。
-             */
-            RGB888 = 24,
-            /**
-             * @en
-             * 32-bit float pixel format containing red, green and blue channels: RGBA32F
-             * @zh
-             * 包含 RGB 通道的 32 位浮点数像素格式:RGBA32F。
-             */
-            RGB32F = 32,
-            /**
-             * @en
-             * 32-bit pixel format containing red, green, blue and alpha channels: RGBA8888
-             * @zh
-             * 包含 RGBA 四通道的 32 位整形像素格式:RGBA8888。
-             */
-            RGBA8888 = 35,
-            /**
-             * @en
-             * 32-bit pixel format containing blue, green, red, and alpha channels: BGRA8888
-             * @zh
-             * 包含 BGRA 四通道的 32 位整形像素格式:BGRA8888。
-             */
-            BGRA8888 = 36,
-            /**
-             * @en
-             * 32-bit float pixel format containing red, green, blue and alpha channels: RGBA32F
-             * @zh
-             * 32位浮点数像素格式:RGBA32F。
-             */
-            RGBA32F = 44,
-            /**
-             * @en
-             * 8-bit pixel format used as masks
-             * @zh
-             * 用作蒙版的8位纹理。
-             */
-            A8 = 1,
-            /**
-             * @en
-             * 8-bit intensity pixel format
-             * @zh
-             * 8位强度纹理。
-             */
-            I8 = 2,
-            /**
-             * @en
-             * 16-bit pixel format used as masks
-             * @zh
-             * 用作蒙版的16位纹理。
-             */
-            AI8 = 3,
-            /**
-             * @en A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
-             * @zh 包含 RGB 通道的 PVR 2BPP 压缩纹理格式
-             */
-            RGB_PVRTC_2BPPV1 = 83,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
-             * @zh 包含 RGBA 通道的 PVR 2BPP 压缩纹理格式
-             */
-            RGBA_PVRTC_2BPPV1 = 84,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
-             * RGB_A_PVRTC_2BPPV1 texture is a 2x height RGB_PVRTC_2BPPV1 format texture.
-             * It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas.
-             * @zh 包含 RGBA 通道的 PVR 2BPP 压缩纹理格式
-             * 这种压缩纹理格式贴图的高度是普通 RGB_PVRTC_2BPPV1 贴图高度的两倍,使用上半部分作为原始 RGB 通道数据,下半部分用来存储透明通道数据。
-             */
-            RGB_A_PVRTC_2BPPV1 = 1024,
-            /**
-             * @en A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
-             * @zh 包含 RGB 通道的 PVR 4BPP 压缩纹理格式
-             */
-            RGB_PVRTC_4BPPV1 = 85,
-            /**
-             * @en A pixel format containing red, green, blue and alpha channels that is PVR 4bpp compressed.
-             * @zh 包含 RGBA 通道的 PVR 4BPP 压缩纹理格式
-             */
-            RGBA_PVRTC_4BPPV1 = 86,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
-             * RGB_A_PVRTC_4BPPV1 texture is a 2x height RGB_PVRTC_4BPPV1 format texture.
-             * It separate the origin alpha channel to the bottom half atlas, the origin rgb channel to the top half atlas.
-             * @zh 包含 RGBA 通道的 PVR 4BPP 压缩纹理格式
-             * 这种压缩纹理格式贴图的高度是普通 RGB_PVRTC_4BPPV1 贴图高度的两倍,使用上半部分作为原始 RGB 通道数据,下半部分用来存储透明通道数据。
-             */
-            RGB_A_PVRTC_4BPPV1 = 1025,
-            /**
-             * @en A pixel format containing red, green, and blue channels that is ETC1 compressed.
-             * @zh 包含 RGB 通道的 ETC1 压缩纹理格式
-             */
-            RGB_ETC1 = 72,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ETC1 compressed.
-             * @zh 包含 RGBA 通道的 ETC1 压缩纹理格式
-             */
-            RGBA_ETC1 = 1026,
-            /**
-             * @en A pixel format containing red, green, and blue channels that is ETC2 compressed.
-             * @zh 包含 RGB 通道的 ETC2 压缩纹理格式
-             */
-            RGB_ETC2 = 73,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
-             * @zh 包含 RGBA 通道的 ETC2 压缩纹理格式
-             */
-            RGBA_ETC2 = 77,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 4x4 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 4x4
-             */
-            RGBA_ASTC_4x4 = 89,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 5x4 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 5x4
-             */
-            RGBA_ASTC_5x4 = 90,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 5x5 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 5x5
-             */
-            RGBA_ASTC_5x5 = 91,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 6x5 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 6x5
-             */
-            RGBA_ASTC_6x5 = 92,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 6x6 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 6x6
-             */
-            RGBA_ASTC_6x6 = 93,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x5 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x5
-             */
-            RGBA_ASTC_8x5 = 94,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x6 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x6
-             */
-            RGBA_ASTC_8x6 = 95,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 8x8 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 8x8
-             */
-            RGBA_ASTC_8x8 = 96,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x5 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x5
-             */
-            RGBA_ASTC_10x5 = 97,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x6 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x6
-             */
-            RGBA_ASTC_10x6 = 98,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x8 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x8
-             */
-            RGBA_ASTC_10x8 = 99,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 10x10 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 10x10
-             */
-            RGBA_ASTC_10x10 = 100,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 12x10 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 12x10
-             */
-            RGBA_ASTC_12x10 = 101,
-            /**
-             * @en A pixel format containing red, green, blue, and alpha channels that is ASTC compressed with 12x12 block size.
-             * @zh 包含 RGBA 通道的 ASTC 压缩纹理格式,压缩分块大小为 12x12
-             */
-            RGBA_ASTC_12x12 = 102
-        }
-        /**
-         * @en
-         * The texture wrap mode.
-         * @zh
-         * 纹理环绕方式。
-         */
-        export enum _cocos_asset_assets_asset_enum__WrapMode {
-            /**
-             * @en
-             * Specifies that the repeat warp mode will be used.
-             * @zh
-             * 指定环绕模式:重复纹理图像。
-             */
-            REPEAT = 0,
-            /**
-             * @en
-             * Specifies that the clamp to edge warp mode will be used.
-             * @zh
-             * 指定环绕模式:纹理边缘拉伸效果。
-             */
-            CLAMP_TO_EDGE = 2,
-            /**
-             * @en
-             * Specifies that the mirrored repeat warp mode will be used.
-             * @zh
-             * 指定环绕模式:以镜像模式重复纹理图像。
-             */
-            MIRRORED_REPEAT = 1,
-            /**
-             * @en
-             * Specifies that the  clamp to border wrap mode will be used.
-             * @zh
-             * 指定环绕模式:超出纹理坐标部分以用户指定颜色填充。
-             */
-            CLAMP_TO_BORDER = 3
-        }
-        /**
-         * @en
-         * The texture filter mode
-         * @zh
-         * 纹理过滤模式。
-         */
-        export enum _cocos_asset_assets_asset_enum__TextureFilter {
-            NONE = 0,
-            /**
-             * @en
-             * Specifies linear filtering.
-             * @zh
-             * 线性过滤模式。
-             */
-            LINEAR = 2,
-            /**
-             * @en
-             * Specifies nearest filtering.
-             * @zh
-             * 临近过滤模式。
-             */
-            NEAREST = 1
-        }
-        /**
          * @en The base texture class, it defines features shared by all textures.
          * @zh 贴图资源基类。它定义了所有贴图共用的概念。
          */
         export class _cocos_asset_assets_texture_base__TextureBase extends Asset {
@@ -63140,19 +63140,19 @@
             /**
              * @en The pixel format enum.
              * @zh 像素格式枚举类型。
              */
-            static PixelFormat: typeof _cocos_asset_assets_asset_enum__PixelFormat;
+            static PixelFormat: typeof PixelFormat;
             /**
              * @en The wrap mode enum.
              * @zh 环绕模式枚举类型。
              */
-            static WrapMode: typeof _cocos_asset_assets_asset_enum__WrapMode;
+            static WrapMode: typeof WrapMode;
             /**
              * @en The texture filter mode enum.
              * @zh 纹理过滤模式枚举类型。
              */
-            static Filter: typeof _cocos_asset_assets_asset_enum__TextureFilter;
+            static Filter: typeof TextureFilter;
             constructor(name?: string);
             /**
              * @en Gets the id of the texture.
              * @zh 获取标识符。
@@ -63163,9 +63163,9 @@
              * @en Gets the pixel format.
              * @zh 获取像素格式。
              * @returns @en The pixel format. @zh 像素格式。
              */
-            getPixelFormat(): _cocos_asset_assets_asset_enum__PixelFormat;
+            getPixelFormat(): PixelFormat;
             /**
              * @en Gets the anisotropy.
              * @zh 获取各向异性。
              * @returns @en The anisotropy. @zh 各项异性值。
@@ -63179,22 +63179,22 @@
              * @param wrapS @en S(U) coordinate wrap mode. @zh S(U) 坐标系缠绕模式.
              * @param wrapT @en T(V) coordinate wrap mode. @zh T(V) 坐标系缠绕模式.
              * @param wrapR @en R(W) coordinate wrap mode. @zh R(W) 坐标系缠绕模式.
              */
-            setWrapMode(wrapS: _cocos_asset_assets_asset_enum__WrapMode, wrapT: _cocos_asset_assets_asset_enum__WrapMode, wrapR?: _cocos_asset_assets_asset_enum__WrapMode): void;
+            setWrapMode(wrapS: WrapMode, wrapT: WrapMode, wrapR?: WrapMode): void;
             /**
              * @en Sets the texture's filter mode.
              * @zh 设置此贴图的过滤算法。
              * @param minFilter @en Filter mode for scale down. @zh 贴图缩小时使用的过滤模式。
              * @param magFilter @en Filter mode for scale up. @zh 贴图放大时使用的过滤模式。
              */
-            setFilters(minFilter: _cocos_asset_assets_asset_enum__TextureFilter, magFilter: _cocos_asset_assets_asset_enum__TextureFilter): void;
+            setFilters(minFilter: TextureFilter, magFilter: TextureFilter): void;
             /**
              * @en Sets the texture's mip filter mode.
              * @zh 设置此贴图的多层 mip 过滤算法。
              * @param mipFilter @en Filter mode for multiple mip level. @zh 多层 mip 过滤模式。
              */
-            setMipFilter(mipFilter: _cocos_asset_assets_asset_enum__TextureFilter): void;
+            setMipFilter(mipFilter: TextureFilter): void;
             /**
              * @en Sets the texture's anisotropy.
              * @zh 设置此贴图的各向异性。
              * @param anisotropy @en The anisotropy to be set. Max value is 16. @zh 待设置的各向异性数值。最大值为16
@@ -63235,10 +63235,10 @@
              */
             _deserialize(serializedData: any, handle: any): void;
             protected _getGFXDevice(): gfx.Device | null;
             protected _getGFXFormat(): gfx.Format;
-            protected _setGFXFormat(format?: _cocos_asset_assets_asset_enum__PixelFormat): void;
-            protected _getGFXPixelFormat(format: _cocos_asset_assets_asset_enum__PixelFormat): gfx.Format;
+            protected _setGFXFormat(format?: PixelFormat): void;
+            protected _getGFXPixelFormat(format: PixelFormat): gfx.Format;
         }
         export interface _cocos_2d_assets_bitmap_font__IConfig {
             [key: string]: any;
         }
@@ -67508,9 +67508,9 @@
              * @en The pixel format.
              * @zh 像素格式。
              * @default PixelFormat.RGBA8888
              */
-            format?: _cocos_asset_assets_asset_enum__PixelFormat;
+            format?: PixelFormat;
             /**
              * @en The mipmap level count.
              * @zh mipmap 层级。
              * @default 1
@@ -75859,8 +75859,8 @@
     import { exoticAnimationTag, ExoticAnimation, additiveSettingsTag, AnimationClipAdditiveSettings } from "cc/editor/exotic-animation";
     import { EmbeddedPlayer, embeddedPlayerCountTag, getEmbeddedPlayersTag, addEmbeddedPlayerTag, removeEmbeddedPlayerTag, clearEmbeddedPlayersTag } from "cc/editor/embedded-player";
     import { AnimationMask, __private as ___private } from "cc/editor/new-gen-anim";
     import { CCON } from "cc/editor/serialization";
-    export { Canvas as CanvasComponent, UIRenderer as RenderComponent, UIRenderer as UIRenderable, UIRenderer as Renderable2D, UITransform as UITransformComponent, Sprite as SpriteComponent, UIMeshRenderer as UIModelComponent, LabelOutline as LabelOutlineComponent, UIStaticBatch as UIStaticBatchComponent, UIOpacity as UIOpacityComponent, Label as LabelComponent, MaskComponent as Mask, RichTextComponent as RichText, GraphicsComponent as Graphics, MeshRenderer as ModelComponent, DirectionalLight as DirectionalLightComponent, Light as LightComponent, SphereLight as SphereLightComponent, SpotLight as SpotLightComponent, SkinnedMeshRenderer as SkinningModelComponent, SkinnedMeshBatchRenderer as BatchedSkinningModelComponent, SkinnedMeshUnit as SkinningModelUnit, Animation as AnimationComponent, AudioSource as AudioSourceComponent, Node as BaseNode, Camera as CameraComponent, ModelRenderer as RenderableComponent, Billboard as BillboardComponent, Line as LineComponent, ParticleSystem as ParticleSystemComponent, SkeletalAnimation as SkeletalAnimationComponent, Button as ButtonComponent, EditBox as EditBoxComponent, Layout as LayoutComponent, ProgressBar as ProgressBarComponent, ScrollBar as ScrollBarComponent, ScrollView as ScrollViewComponent, Slider as SliderComponent, Toggle as ToggleComponent, ToggleContainer as ToggleContainerComponent, Widget as WidgetComponent, PageView as PageViewComponent, PageViewIndicator as PageViewIndicatorComponent, SafeArea as SafeAreaComponent, UICoordinateTracker as UICoordinateTrackerComponent, BlockInputEvents as BlockInputEventsComponent } from "cc";
+    export { Canvas as CanvasComponent, UIRenderer as RenderComponent, UIRenderer as UIRenderable, UIRenderer as Renderable2D, UITransform as UITransformComponent, Sprite as SpriteComponent, UIMeshRenderer as UIModelComponent, LabelOutline as LabelOutlineComponent, UIStaticBatch as UIStaticBatchComponent, UIOpacity as UIOpacityComponent, Label as LabelComponent, MaskComponent as Mask, RichTextComponent as RichText, GraphicsComponent as Graphics, MeshRenderer as ModelComponent, DirectionalLight as DirectionalLightComponent, Light as LightComponent, SphereLight as SphereLightComponent, SpotLight as SpotLightComponent, SkinnedMeshRenderer as SkinningModelComponent, SkinnedMeshBatchRenderer as BatchedSkinningModelComponent, SkinnedMeshUnit as SkinningModelUnit, Animation as AnimationComponent, AudioSource as AudioSourceComponent, Node as BaseNode, Camera as CameraComponent, ModelRenderer as RenderableComponent, TextureFilter as Filter, Billboard as BillboardComponent, Line as LineComponent, ParticleSystem as ParticleSystemComponent, SkeletalAnimation as SkeletalAnimationComponent, Button as ButtonComponent, EditBox as EditBoxComponent, Layout as LayoutComponent, ProgressBar as ProgressBarComponent, ScrollBar as ScrollBarComponent, ScrollView as ScrollViewComponent, Slider as SliderComponent, Toggle as ToggleComponent, ToggleContainer as ToggleContainerComponent, Widget as WidgetComponent, PageView as PageViewComponent, PageViewIndicator as PageViewIndicatorComponent, SafeArea as SafeAreaComponent, UICoordinateTracker as UICoordinateTrackerComponent, BlockInputEvents as BlockInputEventsComponent } from "cc";
     import { Details as _Details } from "cc";
     export {};
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant