• 正在准备搜索索引...
  • 搜索索引不可用
LayaAir3引擎API
  • LayaAir3引擎API
  • laya/RenderDriver/WebGPUDriver/RenderDevice/Utils/PreMultiplyAlpha
  • doPremultiplyAlpha

函数 doPremultiplyAlpha

  • doPremultiplyAlpha(
        device: GPUDevice,
        tex: WebGPUInternalTex,
        xOffset: number,
        yOffset: number,
        width: number,
        height: number,
    ): void

    对贴图中的像素做预乘处理

    参数

    • device: GPUDevice

      A GPUDevice

    • tex: WebGPUInternalTex

      The texture to premultiply Alpha

    • xOffset: number

      horizon offset

    • yOffset: number

      vertical offset

    • width: number
    • height: number

    返回 void

    • 定义于 src/layaAir/laya/RenderDriver/WebGPUDriver/RenderDevice/Utils/PreMultiplyAlpha.ts:169

显示设置

成员可见性
LayaAir3引擎API
  • 加载中……