# GpuTextureAspect

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

Texture aspect selector.

```ds title="GpuTextureAspect"
export enum GpuTextureAspect {
    All = 1,
    StencilOnly = 2,
    DepthOnly = 3,
    Plane0 = 4,
    Plane1 = 5,
    Plane2 = 6,
}
```

[language/library/src/gpu/binding/resource.ds:511:524](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/resource.ds#L511-L524)

## Variants

### `All = 1`

Select all color or depth-stencil aspects.

### `StencilOnly = 2`

Select only the stencil aspect.

### `DepthOnly = 3`

Select only the depth aspect.

### `Plane0 = 4`

Select only plane 0.

### `Plane1 = 5`

Select only plane 1.

### `Plane2 = 6`

Select only plane 2.
