Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 775 vs 776 for /trunk/Source Code/Platform/Video/Headers/GFXDevice.h

Diff revisions: vs.
  @@ -312,7 +312,9 @@
312 312 void draw(const GenericDrawCommand& cmd);
313 313
314 314 void addToRenderQueue(U32 queueIndex, const RenderPackage& package);
315 - void flushRenderQueues();
315 + void renderQueueToSubPasses(RenderPassCmd& commandsInOut);
316 + void flushCommandBuffer(const CommandBuffer& commandBuffer);
317 +
316 318 I32 reserveRenderQueue();
317 319
318 320 /// Sets the current render stage.
  @@ -411,24 +413,24 @@
411 413 return (noDepth ? _defaultStateNoDepthHash : _defaultStateBlockHash);
412 414 }
413 415
414 - inline RenderTarget& renderTarget(RenderTargetID target, U32 index = 0) {
415 - return _rtPool.renderTarget(target, index);
416 + inline RenderTarget& renderTarget(RenderTargetID target) {
417 + return _rtPool.renderTarget(target);
416 418 }
417 419
418 - inline RenderTarget& prevRenderTarget(RenderTargetID target, U32 index = 0) {
419 - return _rtPool.renderTarget(target, index);
420 + inline RenderTarget& prevRenderTarget(RenderTargetID target) {
421 + return _rtPool.renderTarget(target);
420 422 }
421 423
422 - inline void renderTarget(RenderTargetID target, U32 index, RenderTarget* newTarget) {
423 - _rtPool.set(target, index, newTarget);
424 + inline void renderTarget(RenderTargetID target, RenderTarget* newTarget) {
425 + _rtPool.set(target, newTarget);
424 426 }
425 427
426 - inline RenderTargetHandle allocateRT(RenderTargetID targetID) {
427 - return _rtPool.add(targetID, newRT());
428 + inline RenderTargetHandle allocateRT(RenderTargetUsage targetUsage) {
429 + return _rtPool.add(targetUsage, newRT());
428 430 }
429 431
430 432 inline RenderTargetHandle allocateRT() {
431 - return allocateRT(RenderTargetID::OTHER);
433 + return allocateRT(RenderTargetUsage::OTHER);
432 434 }
433 435
434 436 inline bool deallocateRT(RenderTargetHandle& handle) {