Back to class index
IndexBuffer[Class Summary]
indexData
indexDataBytes
numIndices
gpuIndexDataBytes
indexType
primType
indexBuffer
name
ctor
~dtor
ctor
operator=(rhs)
Create(...) (+1 overload)
Deinit()
SetIndex(n,vertexIndex)
GetIndex(n)[const]
GetPointer(n) (+1 overload)
GetOffset(n)[const]
AllocateCpuMemory()
AllocateGpuMemory()
UpdateToGpu()
HasCpuMemory()[const]
CpuSizeBytes()[const]
HasGpuMemory()[const]
GpuSizeBytes()[const]
FreeCpuMemory()
FreeGpuMemory()
CpuPtr() (+1 overload)
SetNumIndices(size)
NumIndices()[const]
NumPrimitives()[const]
UsedSizeBytes()[const]
IndexSizeBytes()[const]
SaveToFile(handle)
LoadFromFile(...)
OptimizeForVertexCaches()
CompressIndices(allow8BitIndices)
Name()[const]
NumIndicesNeededToRenderNPrimitives(...)[static]
NumPrimivivesFromNIndices(...)[static]

IndexBuffer::UsedSizeBytes

Syntax

int IndexBuffer::UsedSizeBytes() const;

Returns the number of bytes 'logically' used by this IndexBuffer.

An index buffer may have allocated more bytes than is actually being used. This is similar to the size vs. capacity usage in a std::vector.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index