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'.
| 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. |