# Module: tfg.rendering.utils

<br />

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

Various util functions common for all rasterizers.

## Functions

[`dim_value(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/utils/dim_value)

[`merge_batch_dims(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/utils/merge_batch_dims): Merges all dimensions into one starting from 0 till `last_axis` exluding.

[`restore_batch_dims(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/utils/restore_batch_dims): Unpack first dimension into batch_shape, preserving the rest of the dimensions.

[`transform_homogeneous(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/utils/transform_homogeneous): Applies 4x4 homogenous matrix transformations to xyz vertices.