Gets the format previously set via set_fourcc or 0 if the format wasn't set.
The format is specified as a fourcc code.
a `GdkDmabufTextureBuilder`
The format