BsD3D11EventQuery.h 751 B

123456789101112131415161718192021222324252627282930313233
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsD3D11Prerequisites.h"
  5. #include "BsEventQuery.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @copydoc EventQuery
  10. */
  11. class BS_D3D11_EXPORT D3D11EventQuery : public EventQuery
  12. {
  13. public:
  14. D3D11EventQuery();
  15. ~D3D11EventQuery();
  16. /**
  17. * @copydoc EventQuery::begin
  18. */
  19. virtual void begin();
  20. /**
  21. * @copydoc EventQuery::isReady
  22. */
  23. virtual bool isReady() const;
  24. private:
  25. ID3D11Query* mQuery;
  26. ID3D11DeviceContext* mContext;
  27. };
  28. }