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.
Methods
layer
layer(
index
)
Slices at the given layer index, returning a single-layer attribute.
__eq__
__eq__(
other
)