跳到主要内容

GPUSampler

GPUTextureView 在共享的 "rive/gpu_types" 内建中声明(在 rive/image 之前加载),以便使用统一的单一名义类型——无论是 Image:view() 还是 GPU 渲染通道 API。描述纹理在着色器中如何被采样。

构造器

new

new(desc: {min: Filter?, mag: Filter?, mipmap: Filter?, wrapU: WrapMode?, wrapV: WrapMode?, compare: CompareFunction?, maxAnisotropy: number?,}?) -> GPUSampler