2 #ifndef _YI_ASSET_SHADER_OBJECT_H_ 3 #define _YI_ASSET_SHADER_OBJECT_H_ 49 void GetCode(uint8_t **ppCode, uint32_t *pCodeSize)
const;
89 std::vector<uint8_t> m_code;
99 #endif // _YI_ASSET_SHADER_OBJECT_H_
virtual void OnUnload() override
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
Binary data that is compiled off-line prior to program execution. This data can come from disk or fro...
Definition: YiAssetShaderObject.h:32
CODE_TYPE
Definition: YiAssetShaderObject.h:31
PATH_TYPE
Definition: YiAsset.h:44
void SetCode(const uint8_t *pCode, uint32_t uCodeSize, CODE_TYPE eType)
String data that is compiled at run-time. This data can come from disk or from memory. See IsFromDisk.
Definition: YiAssetShaderObject.h:33
SHADER_TYPE
Definition: YiAssetShaderObject.h:25
CODE_TYPE GetCodeType() const
void SetFromDisk(bool bFromDisk)
SHADER_TYPE GetType() const
Describes code that will be executed per-vertex.
Definition: YiAssetShaderObject.h:26
Describes code that will be executed per-fragment.
Definition: YiAssetShaderObject.h:27
Base class for any asset. An asset provides functions for dynamically loading and unloading itself an...
Definition: YiAsset.h:33
virtual ~CYIAssetShaderObject()
This file contains the classes and macros used to implement RTTI in You.i Engine. ...
Describes code that will be executed as groups of threads.
Definition: YiAssetShaderObject.h:28
void GetCode(uint8_t **ppCode, uint32_t *pCodeSize) const
void SetType(SHADER_TYPE eType)
Shader object asset. Can either be loaded from a precompiled binary, or loaded as source and compiled...
Definition: YiAssetShaderObject.h:18