WebGLCustomLayerTexture
interface WebGLCustomLayerTexture {
filter?: "linear" | "nearest";
flipY?: boolean;
mipmap?: boolean;
premultiplyAlpha?: boolean;
source: WebGLCustomLayerTextureSource;
wrap?: "clamp" | "repeat" | "mirror";
}
filter?: "linear" | "nearest";
flipY?: boolean;
mipmap?: boolean;
premultiplyAlpha?: boolean;
source: WebGLCustomLayerTextureSource;
wrap?: "clamp" | "repeat" | "mirror";
}
带纹理源的完整纹理描述。异步加载、纹理单元分配、WebGL1 下非 2 次幂尺寸的处理 都由图层负责