depthboundstest11/src/DepthBoundsTest11.cpp
void RenderText()
{
	if (!g_bRenderText)
		return;

    g_pTxtHelper->Begin();
    g_pTxtHelper->SetInsertionPos( 5, 5 );
    g_pTxtHelper->SetForegroundColor( XMVectorSet( 1.0f, 1.0f, 0.0f, 1.0f ) );
    g_pTxtHelper->DrawTextLine( DXUTGetFrameStats( DXUTIsVsyncEnabled() ) );
    g_pTxtHelper->DrawTextLine( DXUTGetDeviceStats() );

    float fEffectTime = (float)TIMER_GetTime( Gpu, L"Deferred Shading" ) * 1000.0f;
	WCHAR wcbuf[256];
	swprintf_s( wcbuf, 256, L"Deferred shading cost in milliseconds( Total = %.3f )", fEffectTime );
	g_pTxtHelper->DrawTextLine( wcbuf );

    g_pTxtHelper->SetInsertionPos( 5, DXUTGetDXGIBackBufferSurfaceDesc()->Height - AMD::HUD::iElementDelta );
	g_pTxtHelper->DrawTextLine( L"Toggle GUI    : F1" );

    g_pTxtHelper->End();
}
//--------------------------------------------------------------------------------------
// Render the help and statistics text. This function uses the ID3DXFont interface for 
// efficient text rendering.
//--------------------------------------------------------------------------------------

Render the help and statistics text. This function uses the ID3DXFont interface for
efficient text rendering.
Render the help and statistics text . This function uses the ID3DXFont interface for efficient text rendering .
void RenderText()
{
	if (!g_bRenderText)
		return;
    g_pTxtHelper->Begin();
    g_pTxtHelper->SetInsertionPos( 5, 5 );
    g_pTxtHelper->SetForegroundColor( XMVectorSet( 1.0f, 1.0f, 0.0f, 1.0f ) );
    g_pTxtHelper->DrawTextLine( DXUTGetFrameStats( DXUTIsVsyncEnabled() ) );
    g_pTxtHelper->DrawTextLine( DXUTGetDeviceStats() );
    float fEffectTime = (float)TIMER_GetTime( Gpu, L"Deferred Shading" ) * 1000.0f;
	WCHAR wcbuf[256];
	swprintf_s( wcbuf, 256, L"Deferred shading cost in milliseconds( Total = %.3f )", fEffectTime );
	g_pTxtHelper->DrawTextLine( wcbuf );
    g_pTxtHelper->SetInsertionPos( 5, DXUTGetDXGIBackBufferSurfaceDesc()->Height - AMD::HUD::iElementDelta );
	g_pTxtHelper->DrawTextLine( L"Toggle GUI    : F1" );
    g_pTxtHelper->End();
}
void RenderText ( ) { if ( ! g_bRenderText ) return ; g_pTxtHelper -> Begin ( ) ; g_pTxtHelper -> SetInsertionPos ( 5 , 5 ) ; g_pTxtHelper -> SetForegroundColor ( XMVectorSet ( 1.0f , 1.0f , 0.0f , 1.0f ) ) ; g_pTxtHelper -> DrawTextLine ( DXUTGetFrameStats ( DXUTIsVsyncEnabled ( ) ) ) ; g_pTxtHelper -> DrawTextLine ( DXUTGetDeviceStats ( ) ) ; float fEffectTime = ( float ) TIMER_GetTime ( Gpu , L" " ) * 1000.0f ; WCHAR wcbuf [ 256 ] ; swprintf_s ( wcbuf , 256 , L" " , fEffectTime ) ; g_pTxtHelper -> DrawTextLine ( wcbuf ) ; g_pTxtHelper -> SetInsertionPos ( 5 , DXUTGetDXGIBackBufferSurfaceDesc ( ) -> Height - AMD :: HUD :: iElementDelta ) ; g_pTxtHelper -> DrawTextLine ( L" " ) ; g_pTxtHelper -> End ( ) ; }
Render the help and statistics text.
Render the help and statistics text .