How to upgrade CreateIndexBuffer from 4.2.1 to 4.3.0

The CreateIndexBuffer API has dramatically changed moving from 4.2.1 to 4.3.0. However the change and the new API isn’t (AFAIK) documented anywhere. How do I move from 4.2.1 to 4.3.0?

You need to do feed the function a FRHIResourceCreateInfo like the following in 4.3:

FRHIResourceCreateInfo CreateInfo;
IndexBufferRHI = RHICreateIndexBuffer( sizeof( int32 ), Indices.Num( ) * sizeof( int32 ), BUF_Static, CreateInfo );

Yep that works. Thanks! :slight_smile: