Skip to content

buffs v1

Paweł Waligóra edited this page Sep 16, 2024 · 2 revisions

buffs, buffs1 buffs2, buffs4, buffs8, buffs1_1 buffs1_2, buffs1_4, buffs1_8, buffs2_1 buffs2_2, buffs2_4, buffs2_8, buffs4_1 buffs4_2, buffs4_4, buffs4_8, buffs8_1 buffs8_2, buffs8_4, buffs8_8

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. Size will be divided by 'counting base`.

Example

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

Suppose processed mesh has 12 vertices and 6 indices. buffs4_2 key-word will produce following values: 12×(4+4+4)÷2=72, 12×(4+4)÷2=48, 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. Size will be divided by 'counting base`.

Example


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

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

Clone this wiki locally