SND\AstrorEnales_cp cfe19d5c4a - Implemented a dynamic parameter buffer for shader parameters
- Updated the Metro shader generator
- Fixed the metro resolution being correctly set to the graphics device
2012-08-19 14:38:58 +00:00

28 lines
726 B
C#

using System;
using System.IO;
namespace ANX.RenderSystem.Windows.Metro.Shader
{
public class ExtendedShaderParameter
{
public string Type;
public string Name;
public int ArraySize;
public int[] TypeDimensions;
public ExtendedShaderParameter(BinaryReader reader)
{
Type = reader.ReadString();
Name = reader.ReadString();
ArraySize = reader.ReadInt32();
int numberOfDimensions = reader.ReadByte();
TypeDimensions = new int[numberOfDimensions];
for (int dimIndex = 0; dimIndex < numberOfDimensions; dimIndex++)
{
TypeDimensions[dimIndex] = (int)reader.ReadByte();
}
}
}
}