Class ShaderAssetTypeBase
Base class for binary assets that can contain shader.
Inheritance
BaseType
ShaderAssetTypeBase
Assembly: FlaxEngine.dll
File: Engine/Graphics/Shaders/Cache/ShaderAssetBase.h
Syntax
public class ShaderAssetTypeBase<BaseType> : public ShaderAssetBase
Type Parameters
|
BaseType
|
Constructors
ShaderAssetTypeBase(const ScriptingObjectSpawnParams& params, const AssetInfo* info)
Declaration
protected ShaderAssetTypeBase(const ScriptingObjectSpawnParams& params, const AssetInfo* info)
Parameters
|
ScriptingObjectSpawnParams
params
|
|
AssetInfo
info
|
Fields
ShadersSerializedVersion
Declaration
public static uint32 ShadersSerializedVersion = ShaderStorage::Header::Version
Field Value
|
uint32
|
Methods
getChunksToPreload()
Declaration
protected AssetChunksFlag getChunksToPreload() const override
Returns
|
AssetChunksFlag
|
GetShaderAsset()
Gets the parent asset.
Declaration
protected virtual BinaryAsset* GetShaderAsset() const override
Returns
|
BinaryAsset
|
Overrides
init(AssetInitData& initData)
Declaration
protected bool init(AssetInitData& initData) override
Parameters
|
AssetInitData
initData
|
Returns
|
bool
|