2011-10-31 05:36:24 +00:00
|
|
|
using System;
|
2012-01-16 15:03:28 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2012-09-04 08:31:17 +00:00
|
|
|
using ANX.Framework.NonXNA;
|
2012-09-09 07:55:45 +00:00
|
|
|
using ANX.Framework.NonXNA.Development;
|
2011-10-31 05:36:24 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-10-31 05:36:24 +00:00
|
|
|
|
|
|
|
namespace ANX.Framework.Graphics
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
[PercentageComplete(60)]
|
|
|
|
[TestState(TestStateAttribute.TestState.Untested)]
|
2012-09-04 08:31:17 +00:00
|
|
|
public sealed class EffectParameter
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
#region Public (TODO)
|
|
|
|
public INativeEffectParameter NativeParameter { get; set; }
|
2012-09-04 08:31:17 +00:00
|
|
|
|
|
|
|
public EffectAnnotationCollection Annotations
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public int ColumnCount
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterCollection Elements
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return this.NativeParameter.Name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterClass ParameterClass
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterType ParameterType
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public int RowCount
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Semantic
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public EffectParameterCollection StructureMembers
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region GetValue
|
|
|
|
public bool GetValueBoolean()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueBoolean();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public bool[] GetValueBooleanArray(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueBooleanArray(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int GetValueInt32()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueInt32();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Int32[] GetValueInt32Array(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueInt32Array(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix GetValueMatrix()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueMatrix();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix[] GetValueMatrixArray(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueMatrixArray(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix GetValueMatrixTranspose()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueMatrixTranspose();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Matrix[] GetValueMatrixTransposeArray(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueMatrixTransposeArray(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Quaternion GetValueQuaternion()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueQuaternion();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Quaternion[] GetValueQuaternionArray(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueQuaternionArray(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float GetValueSingle()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueSingle();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float[] GetValueSingleArray(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueSingleArray(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string GetValueString()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueString();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Texture2D GetValueTexture2D()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueTexture2D();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Texture3D GetValueTexture3D()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueTexture3D();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public TextureCube GetValueTextureCube()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueTextureCube();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector2 GetValueVector2()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector2();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector2[] GetValueVector2Array(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector2Array(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3 GetValueVector3()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector3();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3[] GetValueVector3Array(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector3Array(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector4 GetValueVector4()
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector4();
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector4[] GetValueVector4Array(int count)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
return NativeParameter.GetValueVector4Array(count);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region SetValue
|
|
|
|
public void SetValue([MarshalAs(UnmanagedType.U1)] bool value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(bool[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(int value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(int[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Matrix value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value, false);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Matrix[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value, false);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Quaternion value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Quaternion[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(float value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(float[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(string value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Texture value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector2 value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector2[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector3 value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector3[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector4 value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValue(Vector4[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValueTranspose(Matrix value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value, true);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SetValueTranspose(Matrix[] value)
|
|
|
|
{
|
2012-09-09 07:55:45 +00:00
|
|
|
NativeParameter.SetValue(value, true);
|
2012-09-04 08:31:17 +00:00
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|