BsGpuProgInclude.h 819 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. #include "BsResource.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Raw text resource that serves as an include file for GPU programs.
  8. */
  9. class BS_CORE_EXPORT GpuProgInclude : public Resource
  10. {
  11. public:
  12. /**
  13. * @brief Text of the include file.
  14. */
  15. const String& getString() const { return mString; }
  16. /**
  17. * @brief Creates a new include file resource with the specified include string.
  18. */
  19. static HGpuProgInclude create(const String& includeString);
  20. /**
  21. * @brief Creates an include file resource with the specified include string.
  22. *
  23. * @note Internal method. Use "create" for normal use.
  24. */
  25. static GpuProgIncludePtr _createPtr(const String& includeString);
  26. private:
  27. GpuProgInclude(const String& includeString);
  28. String mString;
  29. };
  30. }