windows-nt/Source/XPSP1/NT/multimedia/directx/dxg/d3d8/fw/resource.inl

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __RESOURCE_INL__
#define __RESOURCE_INL__
/*==========================================================================;
*
* Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
*
* File: resource.inl
* Content: Contains inlines from CResource that need to be separated
* to prevent a reference cycle with CD3DBase
*
***************************************************************************/
#undef DPF_MODNAME
#define DPF_MODNAME "CResource::Sync"
inline void CResource::Sync()
{
static_cast<CD3DBase*>(Device())->Sync(m_qwBatchCount);
} // CResource::Sync
#undef DPF_MODNAME
#define DPF_MODNAME "CResource::Batch"
inline void CResource::Batch()
{
if (IsD3DManaged())
{
Device()->ResourceManager()->Batch(RMHandle(), static_cast<CD3DBase*>(Device())->CurrentBatch());
}
else
{
SetBatchNumber(static_cast<CD3DBase*>(Device())->CurrentBatch());
}
} // CResource::Batch
#undef DPF_MODNAME
#define DPF_MODNAME "CResource::BatchBase"
inline void CResource::BatchBase()
{
SetBatchNumber(static_cast<CD3DBase*>(Device())->CurrentBatch());
} // CResource::BatchBase
#endif //__RESOURCE_INL__