internal static int GetShaderIndex(STATE_CLASS type, d3dx_state[] states)
        {
            foreach (var state in states)
            {
                var operation = state_table[state.operation];
                if (operation.class_ != type)
                {
                    continue;
                }

                if (state.type != STATE_TYPE.CONSTANT)
                {
                    throw new NotSupportedException("We do not support shader expressions!");
                }

                return((int)state.parameter.data);
            }

            return(-1);
        }
 public state_info(STATE_CLASS class_, uint op, string name)
 {
     this.class_ = class_;
     this.op     = op;
     this.name   = name;
 }
        internal static int GetShaderIndex(STATE_CLASS type, d3dx_state[] states)
        {
            foreach (var state in states)
            {
                var operation = state_table[state.operation];
                if (operation.class_ != type)
                    continue;

                if (state.type != STATE_TYPE.CONSTANT)
                    throw new NotSupportedException("We do not support shader expressions!");

                return (int)state.parameter.data;
            }

            return -1;
        }
			public state_info(STATE_CLASS class_, uint op, string name) 
            {
				this.class_ = class_;
				this.op = op;
				this.name = name;
			}
 public StateInfo(STATE_CLASS class_, uint op, string name)
 {
     Class = class_;
     Op    = op;
     Name  = name;
 }