Plasma Engine  2.0
Loading...
Searching...
No Matches
MaterialAssetManager.h
1#pragma once
2
3#include <EditorFramework/Assets/AssetDocumentManager.h>
4#include <Foundation/Types/Status.h>
5
7{
9
10public:
13
14 virtual plString GetRelativeOutputFileName(const plAssetDocumentTypeDescriptor* pTypeDescriptor, plStringView sDataDirectory, plStringView sDocumentPath, plStringView sOutputTag, const plPlatformProfile* pAssetProfile) const override;
15 virtual bool IsOutputUpToDate(plStringView sDocumentPath, plStringView sOutputTag, plUInt64 uiHash, const plAssetDocumentTypeDescriptor* pTypeDescriptor) override;
16
17 static const char* const s_szShaderOutputTag;
18
19private:
20 void OnDocumentManagerEvent(const plDocumentManager::Event& e);
21
22 virtual void InternalCreateDocument(plStringView sDocumentTypeName, plStringView sPath, bool bCreateNewDocument, plDocument*& out_pDocument, const plDocumentObject* pOpenContext) override;
23 virtual void InternalGetSupportedDocumentTypes(plDynamicArray<const plDocumentTypeDescriptor*>& inout_DocumentTypes) const override;
24
25 virtual bool GeneratesProfileSpecificAssets() const override { return false; }
26
27private:
29};
Definition AssetDocumentManager.h:13
Definition Document.h:57
Definition DocumentObjectBase.h:11
Definition DynamicArray.h:81
Definition MaterialAssetManager.h:7
virtual plString GetRelativeOutputFileName(const plAssetDocumentTypeDescriptor *pTypeDescriptor, plStringView sDataDirectory, plStringView sDocumentPath, plStringView sOutputTag, const plPlatformProfile *pAssetProfile) const override
Relative to 'AssetCache' folder.
Definition MaterialAssetManager.cpp:38
Definition PlatformProfile.h:25
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Definition Declarations.h:89
Definition DocumentManager.h:65