# Sandbox.Graphics.UavBarrier

## Overload 1

```csharp
static void UavBarrier(Texture texture)
```

Issues a UAV barrier for the given texture, ensuring writes from prior shader invocations
are visible to subsequent ones without changing the resource layout.

### Parameters

- `texture` (`Texture`): The texture to barrier.

## Overload 2

```csharp
static void UavBarrier(GpuBuffer buffer)
```

Issues a UAV barrier for the given GPU buffer, ensuring writes from prior shader invocations
are visible to subsequent ones.

### Parameters

- `buffer` (`GpuBuffer`): The buffer to barrier.

Declared in [Sandbox.Graphics](/api/Sandbox.Graphics).
Assembly: `Sandbox.Engine`.
