Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 713 vs 714 for /trunk/Source Code/Platform/Video/Headers/GFXDevice.h

Diff revisions: vs.
  @@ -350,7 +350,7 @@
350 350 void increaseResolution();
351 351 void decreaseResolution();
352 352 bool loadInContext(const CurrentContext& context,
353 - const DELEGATE_CBK<>& callback);
353 + const DELEGATE_CBK_PARAM<bool>& callback);
354 354
355 355 /// Save a screenshot in TGA format
356 356 void Screenshot(const stringImpl& filename);
  @@ -479,6 +479,10 @@
479 479 return _api->getFrameDurationGPU();
480 480 }
481 481
482 + inline void syncThreadToGPU(std::thread::id threadID, bool beginSync) {
483 + _api->syncToThread(threadID);
484 + }
485 +
482 486 protected:
483 487 void setBaseViewport(const vec4<I32>& viewport);
484 488
  @@ -534,6 +538,9 @@
534 538 GenericDrawCommand& currentIDC) const;
535 539 void constructHIZ();
536 540
541 + RenderAPIWrapper& getAPIImpl() { return *_api; }
542 + const RenderAPIWrapper& getAPIImpl() const { return *_api; }
543 +
537 544 private:
538 545 GFXDevice();
539 546 ~GFXDevice();
  @@ -690,6 +697,12 @@
690 697 GFXDevice::instance().onChangeResolution(w, h);
691 698 }
692 699
700 + static void syncThreadToGPU(std::thread::id threadID, bool beginSync) {
701 + if (beginSync) {
702 + GFXDevice::instance().syncThreadToGPU(threadID, beginSync);
703 + }
704 + }
705 +
693 706 friend class Divide::Kernel;
694 707 };
695 708