# TextureRenderer

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media/trait-texturerenderer/

**trait** · [`ferroui-media`](/docs/0.5.0/api/ferroui-media/) · v0.5.0

```rust
trait TextureRenderer
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media/renderer.rs#L21)

## Members

- [`render`](#function-render)

<a id="function-render"></a>

### render

```rust
fn render(self: &Self, viewport: RendererViewport, inputs: Vec<FrameLease>, completion: GpuCompletion) -> MediaFuture<FrameLease>
```

Outputs immutable color storage using the admitted device. Private depth,
stencil and MSAA resources remain the client renderer's responsibility.
Before submitting GPU writes, the backend must retain its output in
`completion`; inputs are already retained by the host. Signal only after
actual GPU completion, even when the returned future is abandoned.
Complete the token on admission/allocation failure before any GPU work.
If submitted completion becomes unknown, mark it indeterminate; never
turn cancellation or an error into a premature completion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media/renderer.rs#L30)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
