> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GPUSampler

GPUTextureView is declared in the shared "rive/gpu\_types" builtin
(loaded before rive/image) so that a single nominal type is used
everywhere — both Image:view() and GPU render-pass APIs.
Describes how a texture is sampled in a shader.

## Constructors

### `new`

<div class="signature">
  ```lua theme={null}
  new(desc: {min: Filter?, mag: Filter?, mipmap: Filter?, wrapU: WrapMode?, wrapV: WrapMode?, compare: CompareFunction?, maxAnisotropy: number?,}?) -> GPUSampler
  ```
</div>
