IShaderPublicParams

C++
struct IShaderPublicParams {
};
File

IShader.h

Description

IShaderPublicParams can be used to hold a collection of the shader public params. Manipulate this collection, and use them during rendering by submit to the SRendParams.

IShaderPublicParams::~IShaderPublicParams Destructor
C++
IShaderPublicParams::AddParam Method
C++
virtual void AddParam(const SShaderParam & param) = 0;
Description

Adds a new shader public parameter at the end of the collection.

IShaderPublicParams::AddRef Method
C++
virtual void AddRef() = 0;
IShaderPublicParams::AssignToRenderParams Method
C++
virtual void AssignToRenderParams(struct SRendParams & rParams) = 0;
Description

Assigns collection of shader public parameters to the specified render params structure.

IShaderPublicParams::GetParam Method (int)
C++
virtual SShaderParam& GetParam(int nIndex) = 0;
Description

Retrieves shader public parameter at specified index of the collection.

IShaderPublicParams::GetParam Method (int)
C++
virtual const SShaderParam& GetParam(int nIndex) const = 0;
IShaderPublicParams::GetParamByName Method (char *)
C++
virtual SShaderParam* GetParamByName(const char * pszName) = 0;
Description

Retrieves shader public parameter at specified index of the collection.

IShaderPublicParams::GetParamByName Method (char *)
C++
virtual const SShaderParam* GetParamByName(const char * pszName) const = 0;
IShaderPublicParams::GetParamBySemantic Method (uint8)
C++
virtual SShaderParam* GetParamBySemantic(uint8 eParamSemantic) = 0;
IShaderPublicParams::GetParamBySemantic Method (uint8)
C++
virtual const SShaderParam* GetParamBySemantic(uint8 eParamSemantic) const = 0;
IShaderPublicParams::GetParamCount Method
C++
virtual int GetParamCount() const = 0;
Description

Retrieves number of parameters in collection.

IShaderPublicParams::GetSemanticByName Method
C++
virtual uint8 GetSemanticByName(const char* pszName) = 0;
IShaderPublicParams::GetShaderParams Method ()
C++
virtual DynArray<SShaderParam> * GetShaderParams() = 0;
virtual const DynArray<SShaderParam> * GetShaderParams() const = 0;
Description

Gets shader parameters.

IShaderPublicParams::Release Method
C++
virtual void Release() = 0;
IShaderPublicParams::RemoveParamByName Method
C++
virtual void RemoveParamByName(const char * pszName) = 0;
Description

Removes a shader public parameter

IShaderPublicParams::RemoveParamBySemantic Method
C++
virtual void RemoveParamBySemantic(uint8 eParamSemantic) = 0;
IShaderPublicParams::SetParam Method (char *, UParamVal &, EParamType, uint8)
C++
virtual void SetParam(const char * pszName, UParamVal & pParam, EParamType nType = eType_FLOAT, uint8 eSemantic = 0) = 0;
Description

Sets a shader parameter (and if doesn't exists, add it to the parameters list).

IShaderPublicParams::SetParam Method (int, SShaderParam &)
C++
virtual void SetParam(int nIndex, const SShaderParam & param) = 0;
Description

Assigns shader public parameter at specified index of the collection.

IShaderPublicParams::SetParamCount Method
C++
virtual void SetParamCount(int nParam) = 0;
Description

Changes number of parameters in collection.

IShaderPublicParams::SetShaderParams Method
C++
virtual void SetShaderParams(const DynArray<SShaderParam> & pParams) = 0;
Description

Assigns existing shader parameters list.