port from perforce
This commit is contained in:
32
aiwaz/Aiwaz.Contracts/IShaderParameterCollection.cs
Normal file
32
aiwaz/Aiwaz.Contracts/IShaderParameterCollection.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using SlimDX.Direct3D10;
|
||||
using SlimDX;
|
||||
|
||||
namespace Aiwaz.Contracts
|
||||
{
|
||||
public enum ParameterBindType
|
||||
{
|
||||
BindBySemantic,
|
||||
BindByVariable
|
||||
};
|
||||
|
||||
public interface IShaderParameter
|
||||
{
|
||||
ParameterBindType ParameterNameType { get; }
|
||||
void ApplyValue(EffectVariable argVariable);
|
||||
};
|
||||
|
||||
public interface IShaderParameterSet
|
||||
{
|
||||
bool IsPreconditionForFollowingShaders { get; set; }
|
||||
|
||||
void SetParameter(string argParameterName, IShaderParameter ar_Parameter_);
|
||||
void SetParameter(string argParameterName, ITexture argParameter, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, float argParameter, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, Vector3 ar_Parameter_, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, Vector4 ar_Parameter_, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, Matrix argParameter, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, bool argParameter, ParameterBindType argParamNameType);
|
||||
void SetParameter(string argParameterName, Reference argParameter, ParameterBindType argParamNameType);
|
||||
void RemoveParameter(string argParameterName);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user