private void WriteRegister(GPURegisterName _reg, UInt32 _value, GPUCommandOutput _out) { _State.RegValues[(UInt32)_reg] = _value; if (_out != null) { _out.Log(String.Format("Register {0} ({1}) written with {2} ({3})", Enum.GetName(typeof(GPURegisterName), _reg), (UInt32)_reg, _value, ToFloat(_value))); } }
public UInt32 Reg(GPURegisterName index) { return(_RegValues[(UInt32)index]); }