# tfg.rendering.framebuffer.RasterizedAttribute

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/framebuffer.py#L22-L85) |

A single rasterized attribute and optionally its screen-space derivatives.

    tfg.rendering.framebuffer.RasterizedAttribute(
        value: tf.Tensor,
        d_dx: Optional[tf.Tensor] = None,
        d_dy: Optional[tf.Tensor] = None
    )

Tensors are expected to have shape \[batch, height, width, channels\] or
\[batch, num_layers, height, width, channels\].

Immutable once created.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `is_multi_layer` | <br /> <br /> |
| `value` | Dataclass field |
| `d_dx` | Dataclass field |
| `d_dy` | Dataclass field |

<br />

## Methods

### `layer`

[View source](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/framebuffer.py#L72-L85)

    layer(
        index
    )

Slices at the given layer index, returning a single-layer attribute.

### `__eq__`

    __eq__(
        other
    )

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| d_dx | `None` |
| d_dy | `None` |

<br />