| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsResource.h"
- namespace BansheeEngine
- {
- /**
- * @brief Raw text resource that serves as an include file for GPU programs.
- */
- class BS_CORE_EXPORT GpuProgInclude : public Resource
- {
- public:
- /**
- * @brief Text of the include file.
- */
- const String& getString() const { return mString; }
- /**
- * @brief Creates a new include file resource with the specified include string.
- */
- static HGpuProgInclude create(const String& includeString);
- /**
- * @brief Creates an include file resource with the specified include string.
- *
- * @note Internal method. Use "create" for normal use.
- */
- static GpuProgIncludePtr _createPtr(const String& includeString);
- private:
- GpuProgInclude(const String& includeString);
- String mString;
- };
- }
|