Skip to content
Paweł Waligóra edited this page Sep 17, 2024 · 6 revisions

buffs

preamble key-word since v1.0.0

size of single buffer

Behaviour in main preamble.

Outputs sizes (in bytes) of each of the buffers in a resulting output file. Does not take into account buffer preamble - outputs only the total size of all the fields.

Example

begin file a.out
buffs
; vertex.x vertex.y vertex.z
; uv0.x uv0.y
; indice.0 indice.1 indices.2
end

Suppose processed mesh has 12 vertices and 6 indices. buffs key-word will produce following values: 12×(4+4+4)=144, 12×(4+4)=96, 6×(4+4+4)=36.

Behaviour in buffer preamble.

Outputs size (in bytes) of the buffers in a resulting output file. Does not take into account buffer preamble - outputs only the total size of all the fields.

Example

begin file a.out

buffs ; vertex.x vertex.y vertex.z
buffs ; uv0.x uv0.y
buffs ; indice.0 indice.1 indices.2
end

Suppose processed mesh has 12 vertices and 6 indices. buffs key-word will produce following values: 12×(4+4+4)=144 in 1st buffer, 12×(4+4)=96 in 2nd buffer and 6×(4+4+4)=36 in 3rd buffer.

Clone this wiki locally