MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SetIndexFormat

Method SetIndexFormat

GTE/Graphics/MeshFactory.h:57–60  ·  view source on GitHub ↗

Specify the type of indices and where the index buffer data should be stored. For 'uint32_t' indices, set 'use32Bit' to 'true'; for 'uint16_t' indices, set 'use32Bit' to false. The default is 'uint32_t'.

Source from the content-addressed store, hash-verified

55 // for 'uint16_t' indices, set 'use32Bit' to false. The default
56 // is 'uint32_t'.
57 inline void SetIndexFormat(bool use32Bit)
58 {
59 mIndexSize = (use32Bit ? sizeof(uint32_t) : sizeof(uint16_t));
60 }
61
62 // Specify the usage for the index buffer data. The default is
63 // Resource::Usage::IMMUTABLE.

Callers 1

CreateSceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected