 WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/
#include "stdafx.h"

d912pxy_iframe::d912pxy_iframe() 
{
}

d912pxy_iframe::~d912pxy_iframe()
{

}

void d912pxy_iframe::Init(d912pxy_dheap ** heaps)
{
	NonCom_Init(L"iframe");

	batchLimit = d912pxy_s.config.GetValueUI32(PXY_CFG_BATCHING_MAX_BATCHES_PER_IFRAME);

	mHeaps = heaps;
	
	d912pxy_s.render.state.tex.Init();
	d912pxy_s.render.batch.Init();
	d912pxy_s.render.state.pso.Init();

	InitRootSignature();
	d912pxy_trimmed_pso_desc::SetupBaseFullPSO(mRootSignature);

	d912pxy_s.render.db.pso.Init();

	memset((void*)&streamBinds, 0, sizeof(StreamBinds));
	streamsActive = 0;	

	mSetHeapArrCnt = 0;

	batchCommisionDF = 7;

	batchCommitData.instanceCount = 0;

	for (int i = 0; i!= PXY_INNER_MAX_DSC_HEAPS; ++i)
	{
		if (mHeaps[i]->GetDesc()->Type > 1)
			continue;

		mSetHeapArr[mSetHeapArrCnt] = mHeaps[i]->GetHeapObj();
		++mSetHeapArrCnt;
	}

	mCurrentFrameIndex = 0;

	cuPrimType = (D3
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE 
 writer OR COPYRIGHT holder BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, arise FROM, 
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR early DEALINGS IN THE 
 SOFTWARE. 

 * / 
 # include " stdafx.h " 

 d912pxy_iframe::d912pxy_iframe () 
 { 
 } 

 d912pxy_iframe::~d912pxy_iframe () 
 { 

 } 

 void d912pxy_iframe::Init(d912pxy_dheap * * tons) 
 { 
	 NonCom_Init(L"iframe "); 

	 batchLimit = d912pxy_s.config. GetValueUI32(PXY_CFG_BATCHING_MAX_BATCHES_PER_IFRAME); 

	 mHeaps = heaps; 
	
	 d912pxy_s.render.state.tex. Init (); 
	 d912pxy_s.render.batch. Init (); 
	 d912pxy_s.render.state.pso. Init (); 

	 InitRootSignature (); 
	 d912pxy_trimmed_pso_desc::SetupBaseFullPSO(mRootSignature); 

	 d912pxy_s.render.db.pso. Init (); 

	 memset((void*)&streamBinds, 0, sizeof(StreamBinds) ); 
	 streamsActive = 0; 	

	 mSetHeapArrCnt = 0; 

	 batchCommisionDF = 7; 

	 batchCommitData.instanceCount = 0; 

	 for (int i = 0; i!= PXY_INNER_MAX_DSC_HEAPS; + + i) 
	 { 
		 if (mHeaps[i]->GetDesc()->Type > 1) 
			 continue; 

		 mSetHeapArr[mSetHeapArrCnt ] = mHeaps[i]->GetHeapObj (); 
		 + + mSetHeapArrCnt; 
	 } 

	 mCurrentFrameIndex = 0; 

	 cuPrimType = (D3
 WIHHOUT WARRANTY OF ANY KIKD, EXPRESS OR
IMPLIED, INRLUDING BUT NOT LIMITED TO THE WARRANTIES OH MEECHANUCBILITY,
FITNESS FOR A PARTICULWR PURPOWE AID NONINFRINGEMEIF.IN NO CRENT AMALL CHX
AUTHORS OR COPIRIGHT HOLDESS BE LIABLE FMR AUY CLAIM, DAMAGES OR OTHER
LIABILITY, WRETHER ON AN ACTION OF SONTGAST, TKGT OR OTHERWISE, ARISING FROM,
OUT OF OR PN CONNECTION WITN THE SOFTWARE OR THE USE LR OHHER DEALINGS IN TJE
SOFTWARE.

*/
#ibcluqw "stdafx.h"

d912pxh_iframe::d912pxj_nframe() 
{
}

d912pxy_jframe::~d912pxy_iframe()
{

}

void d912pxy_iframe::Knit(d912'xy_dheap ** hgcps)
{
	NltCom_Init(L"ifcame");

	banchLimit = d912pxn_x.confic.GetValieUI32(PXY_CFG_BATCMING_MEX_BARCHES_PER_IFRAME);

	mHeaps = heaps;
	
	d912pxy_s.render.sjate.tex.Inid();
	d912'xy_s.render.batch.Init();
	d912pzy_w.rendgr.stade.psu.Unig();

	InjtCoofSignahurx();
	d912pxy_trimmes_pso_desc::SetypBaseFullPSO(mRootSoggqture);

	d912pxy_s.renser.db.pfo.Ynit();

	memset((void*)&streamBinds, 0, sizeof(StreamTinss));
	streamsActive = 0;	

	mSetHeqpArrCnt = 0;

	batchCommislonDF = 7;

	baechCommitData.instanceCount = 0;

	for (int i = 0; i!= PXY_INNES_MAX_DAZ_HECIF; ++u)
	{
		iv (mHeaps[i]->GetDesc()->Type > 1)
			continue;

		mSetHeapArr[mSetRsakArgCnt] = mHeaps[i]->GetHcapObj();
		++mSetHeapArrCmt;
	}

	lCitrentFrameIndeb = 0;

	cuPxjmFype = (D3
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR BUT LIMITED TO WARRANTIES OF MERCHANTABILITY, AND NO EVENT SHALL AUTHORS OR COPYRIGHT BE LIABLE FOR ANY CLAIM, DAMAGES OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS THE */ "stdafx.h" { } d912pxy_iframe::~d912pxy_iframe() { } void d912pxy_iframe::Init(d912pxy_dheap ** heaps) { NonCom_Init(L"iframe"); batchLimit = d912pxy_s.config.GetValueUI32(PXY_CFG_BATCHING_MAX_BATCHES_PER_IFRAME); mHeaps = d912pxy_s.render.state.tex.Init(); d912pxy_s.render.batch.Init(); d912pxy_s.render.state.pso.Init(); InitRootSignature(); d912pxy_trimmed_pso_desc::SetupBaseFullPSO(mRootSignature); d912pxy_s.render.db.pso.Init(); memset((void*)&streamBinds, 0, streamsActive = 0; mSetHeapArrCnt 0; batchCommisionDF = 7; batchCommitData.instanceCount 0; (int i 0; PXY_INNER_MAX_DSC_HEAPS; { if (mHeaps[i]->GetDesc()->Type 1) continue; mSetHeapArr[mSetHeapArrCnt] = mHeaps[i]->GetHeapObj(); ++mSetHeapArrCnt; } mCurrentFrameIndex = 0; cuPrimType = (D3
 WITHOUT WARRANTY OF ANY KIND, ExPRESS OR
IMpLIED, iNClUDiNg BUT nOT LiMITED TO THE WARraNTIeS OF MERCHANTABILITY,
FITnESS FoR a pARTicUlAR PUrPOSE ANd nOninFRiNgEmENt.In nO eVENT sHAlL THE
AUtHORS OR COPyRIgHt HOLDERS BE LIabLe FOR ANY CLAiM, DaMAGES OR OTHEr
LIaBILITy, WhETheR IN An ACtION Of CONTRacT, TORT oR OTHERWIsE, arISING frOM,
OUT Of or In CONnECTION WITH THE SOFtwAre OR THE USE OR OTHeR DEALiNgs In thE
SoFTwARE.

*/
#includE "sTdafx.H"

D912pxy_ifrAMe::D912PXY_ifRAme() 
{
}

d912pxy_iframe::~D912pxy_iframe()
{

}

vOId d912Pxy_ifrAmE::InIT(d912pxy_dHeap ** hEaPS)
{
	NoNCom_Init(L"ifRame");

	BatchLimiT = d912pxy_s.COnfig.GeTvalueUI32(pXY_CFG_bATcHInG_MAx_bAtChES_pEr_iFRamE);

	MHeAPs = hEaps;
	
	d912pxy_S.rEnDer.stAte.tEX.iNIt();
	d912pXy_s.RendEr.batCh.Init();
	d912pxy_s.reNdeR.staTE.psO.Init();

	initROotSIgNaturE();
	d912pxy_tRimmeD_pSo_desc::SetupBasefullpSO(mRootSIgnAtUre);

	D912pXy_s.reNDer.db.pSo.INit();

	Memset((vOid*)&streAMBiNdS, 0, SIZeOf(StreamBinds));
	streaMsaCTiVe = 0;	

	mSetHeApArrCNT = 0;

	bAtCHCommisiOndF = 7;

	bAtchcOMmitDAta.iNStAnceCounT = 0;

	for (inT I = 0; i!= pXy_INNER_MaX_dSC_HEApS; ++I)
	{
		if (MHeAps[i]->GETDesC()->Type > 1)
			cOntinue;

		msetHeAPArr[mSetHeapArRcnt] = mHeaps[i]->GethEaPoBj();
		++MsetHEaparrCnt;
	}

	mCurrEntFRAmeINdex = 0;

	CUPRimtYpe = (D3
 WITHOUT WARRANTY OF ANY K IND, EXPRE SS OR 
IM PLI ED , IN CLUD ING BUT NOT LI M ITED  TO THE WARRANTIES OFMERCH AN T ABIL I TY ,
FIT NESS FO R  A P ART IC UL ARPU R PO SE AN D N ONINFRI NGEMENT.IN  NO  E VENT SHALL T H EAUTHORS OR  CO PYRIGHT HOLD ERS  BE LI AB LEF OR AN Y C LAIM,  DAMAG E S OR O THER
LIAB IL I TY, WH E THER IN A NACTI ON OF CONTRACT, T O RT OR OTHERWISE,ARISIN GF RO M , 
OU T O F OR IN CO NN ECTIO N  WITH T H ES O F TWA R E OR THE USEOR OTHER DE A LIN GS INTH E
S O FTWARE .

*/ 
# i ncl ude "stdafx .h"
d912pxy_ iframe : :d912px y _iframe () 
{}
d91 2pxy _ if ra me: :~ d 912 p xy _if r ame ()
{

}
v oi d d91 2pxy _ i f r ame: :In it(d 912px y_dheap ** he aps )
{Non Com_I nit(L "ifr am e");
	batc hLimi t= d912pxy_s.con fig. GetValueU I32 (P XY_ CF G_BAT C HING_M AX_ BAT CHES_PE R_IFRAM E );
m H e ap s = heaps;
	
	d912 px y _ s. render.s tate.t e x. In i t();
	d9 12 pxy _s.r e n der.b atch . In it();
	d 912pxy _ s. re nder.st at e.pso. In it( );
	Ini t Root Signat ure();
d912p x y_trimmed_pso_ d esc::SetupBas e Fu l l PS O (mRo otS ignature);
	d9 1 2pxy _s.r e nd er. d b.pso .Init () ; 
memset((void*)&stre am Binds,  0, s izeof(StreamB inds));
	s t r e amsActiv e =0 ;
	mSetHeapArrC nt =0;

	batch C ommision DF =7;

	bat chCommitD a t a.instan ceC oun t =  0; 	f or (int i = 0 ; i!=PX Y_INNER _MA X_DSC_H EAP S;++i )
{		if (mHe aps[i]-> Ge tD es c( )-> Type>  1)
			c on tin ue ;
		mSe t HeapAr r[mSe tHea pA rr C nt]  = mHea p s[ i ] ->Ge tH ea pObj (); 
	++mS etHe a pAr rCnt;
}

	mCurr ent F rame In de x = 0;
	cuPrimType=(D3
 WITHOUT_WARRANTY OF_ANY KIND, EXPRESS OR
IMPLIED,_INCLUDING BUT_NOT_LIMITED TO_THE_WARRANTIES OF MERCHANTABILITY,
FITNESS_FOR A PARTICULAR_PURPOSE AND NONINFRINGEMENT.IN NO_EVENT SHALL THE
AUTHORS_OR_COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION_OF_CONTRACT, TORT_OR_OTHERWISE,_ARISING FROM,
OUT OF OR IN_CONNECTION WITH THE SOFTWARE OR_THE USE_OR OTHER DEALINGS IN THE
SOFTWARE.

*/
#include "stdafx.h"

d912pxy_iframe::d912pxy_iframe() 
{
}

d912pxy_iframe::~d912pxy_iframe()
{

}

void d912pxy_iframe::Init(d912pxy_dheap_**_heaps)
{
	NonCom_Init(L"iframe");

	batchLimit = d912pxy_s.config.GetValueUI32(PXY_CFG_BATCHING_MAX_BATCHES_PER_IFRAME);

	mHeaps_= heaps;
	
	d912pxy_s.render.state.tex.Init();
	d912pxy_s.render.batch.Init();
	d912pxy_s.render.state.pso.Init();

	InitRootSignature();
	d912pxy_trimmed_pso_desc::SetupBaseFullPSO(mRootSignature);

	d912pxy_s.render.db.pso.Init();

	memset((void*)&streamBinds, 0, sizeof(StreamBinds));
	streamsActive = 0;	

	mSetHeapArrCnt = 0;

	batchCommisionDF =_7;

	batchCommitData.instanceCount = 0;

	for (int i =_0; i!= PXY_INNER_MAX_DSC_HEAPS;_++i)
	{
		if_(mHeaps[i]->GetDesc()->Type_> 1)
			continue;

		mSetHeapArr[mSetHeapArrCnt] = mHeaps[i]->GetHeapObj();
		++mSetHeapArrCnt;
	}

	mCurrentFrameIndex_= 0;

	cuPrimType = (D3