Logo
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Yukar.Common.Resource.Shader Class Reference

Class that manages shader resources More...

Inheritance diagram for Yukar.Common.Resource.Shader:
Yukar.Common.Resource.ResourceItem Yukar.Common.Rom.RomItem Yukar.Common.Rom.IChunk

Classes

class  ParamInfo
 Shader parameter information More...
 

Public Types

enum  Type { System , Builtin , User }
 Enumeration that defines shader types More...
 
- Public Types inherited from Yukar.Common.Rom.RomItem
enum  ThumbnailStatusType { Empty = 0 , Creating , Created , Failed }
 Thumbnail image generation status More...
 

Public Member Functions

 Shader ()
 constructor More...
 
 Shader (string path, Type t)
 constructor Create a system shader that you refer to by name every time here More...
 
override void load (BinaryReader reader)
 Load More...
 
override void save (BinaryWriter writer)
 save More...
 
override bool initializingAfterLoading ()
 
ParamInfo getParamInfo (string name)
 Get parameter information for the specified name More...
 
- Public Member Functions inherited from Yukar.Common.Resource.ResourceItem
override bool initializingAfterLoading ()
 
virtual void initializeKmyGfx ()
 
override void save (System.IO.BinaryWriter writer)
 
override void load (System.IO.BinaryReader reader)
 
virtual void setPath (string path)
 
virtual void CopySourceResourceFile (string inSrcPath, string inDstPath=null, bool inIsOverwrite=false, bool inIsExistFileRename=false)
 
void CopyOutsideResourceFile (bool inIsOverwrite=false, bool inIsExistFileRename=false)
 
bool deleteResourceFile (Dictionary< string, int > inUsedFilePathCountDic, bool inIsAutoDeleteFile)
 
virtual List< string > getRelatedFiles ()
 
virtual List< string > getInternalFormatFilePath ()
 
virtual ErrorType verify ()
 
bool IsError (bool inCheckDispOnly=true)
 
bool isSystemResource ()
 
bool isDLCResource ()
 
void setToModified ()
 
virtual string[] getPathList ()
 
string getExtension ()
 
virtual void ChangeReImportPath ()
 
virtual List< Guid > GetUsedResourceIdList ()
 
override void ChangeId (Dictionary< Guid, Rom.RomItem > inChangeIdDic)
 
void ClearResourceHolderCache ()
 
void updateSetuppedThumbnail ()
 
virtual void reload ()
 
bool isExistNewerTimeStamp ()
 
virtual void renamePath (string inNewPath)
 
virtual void setNativeResourcePath (string inFolderPath)
 set full path of native resource for system project y More...
 
- Public Member Functions inherited from Yukar.Common.Rom.RomItem
string getCategory (string locale=null)
 
 RomItem ()
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify, out bool setNotify)
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify)
 
System.Drawing.Bitmap getThumbnail ()
 
void invalidateThumbnail ()
 
void invalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 
void forceInvalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 
virtual void save (BinaryWriter writer)
 
virtual void load (BinaryReader reader)
 
virtual void saveUsedGUID (BinaryWriter writer, bool inIncludeChildUseRomGUID)
 Export the GUID you are using (for tools) More...
 
void saveUsedGUID (BinaryWriter writer)
 Export the GUID you are using (for tools) More...
 
virtual bool initializingAfterLoading ()
 
virtual void reImport ()
 
virtual void export (string path)
 
virtual void onCatalogCleanup ()
 
virtual void onNameChanged ()
 
void copyFrom (Common.Rom.RomItem src)
 
virtual void CheckRecourceConsistency (Catalog inCatalog)
 
virtual void ChangeId (Dictionary< Guid, Rom.RomItem > inChangeIdDic)
 Replace the Id you are using with the corresponding Rom Id More...
 
void ClearId (List< Rom.RomItem > inClearRomItemList)
 Removed rom usage in list More...
 
void Dispose ()
 
void AddUpdatecall (int count)
 
void save (BinaryWriter writer)
 
void load (BinaryReader reader)
 

Static Public Member Functions

static void addSystemShaders (string apppath)
 Loading the System Shader More...
 
static void addBuiltinShaders (string apppath)
 Loading a built-in shader More...
 
static void releaseBuiltin ()
 Shader release More...
 
static Shader getShader (string name)
 Get shader for the specified name More...
 
- Static Public Member Functions inherited from Yukar.Common.Resource.ResourceItem
static string makeCreateFilePath (Type inType, string inSrcPath, bool inIsOverWrite)
 Creating a file path to copy resource files to More...
 
- Static Public Member Functions inherited from Yukar.Common.Rom.RomItem
static bool reImport (List< RomItem > inRomList)
 
static void writeChunk (System.IO.BinaryWriter writer, IChunk rom)
 
static void readChunk (System.IO.BinaryReader reader, IChunk rom)
 
static void skipChunk (System.IO.BinaryReader reader)
 
static T Clone< T > (RomItem inSrc)
 
static bool equalChunk (IChunk a, IChunk b)
 
static IChunk duplicate (IChunk rom)
 

Public Attributes

Type type = Type.System
 Shader type More...
 
- Public Attributes inherited from Yukar.Common.Resource.ResourceItem
Guid dlcGuid = Guid.Empty
 
string relatedPath = ""
 
string path = ".\\"
 
Option option = new Option()
 
ResourceSource source = ResourceSource.RES_USER
 
- Public Attributes inherited from Yukar.Common.Rom.RomItem
Guid guId
 
String name
 
string tags = ""
 
string category = ""
 

Static Public Attributes

static string sCurrentLanguage
 Working Language More...
 
- Static Public Attributes inherited from Yukar.Common.Resource.ResourceItem
static ResourceSource sCurrentSourceMode
 
static bool sReferenceLoad = false
 
static bool sClipboardLoad = false
 
static bool sAttachResource = true
 
const string TAG_3D = "#3D"
 
const string TAG_2D = "#2D"
 
static Guid sCurrentSourceGuid
 
- Static Public Attributes inherited from Yukar.Common.Rom.RomItem
static int thumbnailWidth = 128
 
static int thumbnailHeight = 128
 
const char CATEGORY_SPLITTER = '\\'
 
static CREATETHUMBNAIL createThumbnailFunction = null
 
const int UnknownRefCount = -2000
 

Properties

string Description [get]
 Shader description More...
 
- Properties inherited from Yukar.Common.Resource.ResourceItem
string SourcePath [get]
 
virtual string ImportPath [get, set]
 
virtual string SourceFileName [get]
 
string SourceFolderName [get]
 
int StampType [get, set]
 
bool ForceExport [get, set]
 
virtual bool ConvertableToInternalFormat [get]
 
string resourcePath [get, set]
 
- Properties inherited from Yukar.Common.Rom.RomItem
System.Drawing.Bitmap Thumbnail [get]
 
ThumbnailStatusType ThumbnailStatus = ThumbnailStatusType.Empty [get, set]
 
string Name [get, set]
 
virtual int RefCount [get]
 
virtual bool UseRefCount [get]
 
Folder Parent [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from Yukar.Common.Resource.ResourceItem
virtual bool IsErrorImp (bool inCheckDispOnly)
 
string checkReImportPath (string importPath, string filter, bool changeReImportPath)
 
virtual List< ResourceHolderGetResourceHolderList ()
 
virtual void afterRenamePath (string inNewPath)
 
- Protected Member Functions inherited from Yukar.Common.Rom.RomItem
virtual void Dispose (bool disposing)
 

Detailed Description

Class that manages shader resources

Member Enumeration Documentation

◆ Type

enum Yukar.Common.Resource.Shader.Type

Enumeration that defines shader types

Enumerator
System 
Builtin 
User 

Constructor & Destructor Documentation

◆ Shader() [1/2]

Yukar.Common.Resource.Shader.Shader ( )

constructor

◆ Shader() [2/2]

Yukar.Common.Resource.Shader.Shader ( string  path,
Type  t 
)

constructor Create a system shader that you refer to by name every time here

Member Function Documentation

◆ addBuiltinShaders()

static void Yukar.Common.Resource.Shader.addBuiltinShaders ( string  apppath)
static

Loading a built-in shader

Parameters
apppath

◆ addSystemShaders()

static void Yukar.Common.Resource.Shader.addSystemShaders ( string  apppath)
static

Loading the System Shader

Parameters
apppath

◆ getParamInfo()

ParamInfo Yukar.Common.Resource.Shader.getParamInfo ( string  name)

Get parameter information for the specified name

Parameters
name
Returns

◆ getShader()

static Shader Yukar.Common.Resource.Shader.getShader ( string  name)
static

Get shader for the specified name

Parameters
name
Returns

◆ initializingAfterLoading()

override bool Yukar.Common.Resource.Shader.initializingAfterLoading ( )
virtual

◆ load()

override void Yukar.Common.Resource.Shader.load ( BinaryReader  reader)
virtual

Load

Parameters
reader

Reimplemented from Yukar.Common.Rom.RomItem.

◆ releaseBuiltin()

static void Yukar.Common.Resource.Shader.releaseBuiltin ( )
static

Shader release

◆ save()

override void Yukar.Common.Resource.Shader.save ( BinaryWriter  writer)
virtual

save

Parameters
writer

Reimplemented from Yukar.Common.Rom.RomItem.

Member Data Documentation

◆ sCurrentLanguage

string Yukar.Common.Resource.Shader.sCurrentLanguage
static

Working Language

◆ type

Type Yukar.Common.Resource.Shader.type = Type.System

Shader type

Property Documentation

◆ Description

string Yukar.Common.Resource.Shader.Description
get

Shader description