SHADOWFX_RETURN_CODE AMD_SHADOWFX_DLL_API AMD::ShadowFX_Render(const ShadowFX_Desc & desc) { if (NULL == desc.m_pContext) { return SHADOWFX_RETURN_CODE_INVALID_DEVICE_CONTEXT; } AMD::C_SaveRestore_IA save_ia(desc.m_pContext); AMD::C_SaveRestore_VS save_vs(desc.m_pContext); AMD::C_SaveRestore_HS save_hs(desc.m_pContext); AMD::C_SaveRestore_DS save_ds(desc.m_pContext); AMD::C_SaveRestore_GS save_gs(desc.m_pContext); AMD::C_SaveRestore_PS save_ps(desc.m_pContext); AMD::C_SaveRestore_RS save_rs(desc.m_pContext); AMD::C_SaveRestore_OM save_om(desc.m_pContext); AMD::C_SaveRestore_CS save_cs(desc.m_pContext); SHADOWFX_RETURN_CODE result = desc.m_pOpaque->render(desc); return result; }
//------------------------------------------------------------------------------------------------- // //------------------------------------------------------------------------------------------------- AOFX_RETURN_CODE AMD_AOFX_DLL_API AOFX_Render(const AOFX_Desc & desc) { AMD_OUTPUT_DEBUG_STRING("CALL: " AMD_FUNCTION_NAME "\n"); if (NULL == desc.m_pDeviceContext) { return AOFX_RETURN_CODE_INVALID_DEVICE_CONTEXT; } AMD::C_SaveRestore_IA save_ia(desc.m_pDeviceContext); AMD::C_SaveRestore_VS save_vs(desc.m_pDeviceContext); AMD::C_SaveRestore_HS save_hs(desc.m_pDeviceContext); AMD::C_SaveRestore_DS save_ds(desc.m_pDeviceContext); AMD::C_SaveRestore_GS save_gs(desc.m_pDeviceContext); AMD::C_SaveRestore_PS save_ps(desc.m_pDeviceContext); AMD::C_SaveRestore_RS save_rs(desc.m_pDeviceContext); AMD::C_SaveRestore_OM save_om(desc.m_pDeviceContext); AMD::C_SaveRestore_CS save_cs(desc.m_pDeviceContext); AOFX_RETURN_CODE result = desc.m_pOpaque->render(desc); return result; }