DmabufTextureBuilder.setFourcc

void setFourcc(uint fourcc)

Sets the format of the texture.

The format is specified as a fourcc code.

The format must be set before calling [gdk.gltexture_builder.GLTextureBuilder.build].

Parameters

fourccthe texture's format or 0 to unset