# GpuTextureViewDescriptor

`import { GpuTextureViewDescriptor } from "destack:gpu/binding";`

GPU texture view descriptor.

```ds title="GpuTextureViewDescriptor"
export struct GpuTextureViewDescriptor {
    label: string;
    format: GpuTextureFormat;
    usage: GpuTextureUsage;
    dimension: GpuTextureViewDimension;
    baseMipLevel: uint32;
    mipLevelCount: uint32;
    baseArrayLayer: uint32;
    arrayLayerCount: uint32;
    aspect: GpuTextureAspect;
}
```

[language/library/src/gpu/binding/resource.ds:417:436](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/resource.ds#L417-L436)

## Members

### `label: string`

Debug label.

### `format: GpuTextureFormat`

View format identifier when one compatible view format is selected.

### `usage: GpuTextureUsage`

View usage bitset when the view narrows the texture usage set.

### `dimension: GpuTextureViewDimension`

View dimension selector.

### `baseMipLevel: uint32`

Base mip-level index.

### `mipLevelCount: uint32`

Mip-level count when the view does not cover the remaining mip range.

### `baseArrayLayer: uint32`

Base array-layer index.

### `arrayLayerCount: uint32`

Array-layer count when the view does not cover the remaining layer range.

### `aspect: GpuTextureAspect`

Texture aspect selector.
