dx12/main.cpp
//-----------------------------------------------------------------------------
// [SECTION] example specific per-frame function implementations
//-----------------------------------------------------------------------------
[SECTION] example specific per-frame function implementations
[ SECTION ] example specific per - frame function implementations
static void
update_constant_buffers()
{
    unsigned char* dst = g_mapping;
    dst+=(g_frameIndex % S_FRAME_COUNT)*(sizeof(ConstantBuffer) + 255) & ~255;
    memcpy(dst, &g_vertexOffset, sizeof(ConstantBuffer));
}
static void update_constant_buffers ( ) { unsigned char * dst = g_mapping ; dst += ( g_frameIndex % S_FRAME_COUNT ) * ( sizeof ( ConstantBuffer ) + 255 ) & ~ 255 ; memcpy ( dst , & g_vertexOffset , sizeof ( ConstantBuffer ) ) ; }
[SECTION] example specific per-frame function implementations
[ SECTION ] example specific per - frame function implementations