View source on GitHub
  
 | 
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.
Attributes | |
|---|---|
is_multi_layer
 | 
|
value
 | 
Dataclass field | 
d_dx
 | 
Dataclass field | 
d_dy
 | 
Dataclass field | 
Methods
layer
layer(
    index
)
Slices at the given layer index, returning a single-layer attribute.
__eq__
__eq__(
    other
)
Class Variables | |
|---|---|
| d_dx | 
None
 | 
| d_dy | 
None
 | 
    View source on GitHub