public NvPStates?ObtainPStates() { var states = new NvPStates { Version = NvApi.GpuPstatesVer, PStates = new NvPState[NvApi.MaxPstatesPerGpu] }; if (NvApi.GetDynamicPStatesInfoEx == null || NvApi.GetDynamicPStatesInfoEx(Gpu.AdapterHandle, ref states) != NvStatus.Ok) { return(null); } return(states); }