Buffer:getSize

Edit

Returns the size of the Buffer in VRAM, in bytes. This is the same as length * stride.

The size of the Buffer can't change after it's created.

size = Buffer:getSize()

Arguments

None

Returns

NameTypeDescription
sizenumber The size of the Buffer, in bytes.

See also