public static NvGpuPState20V2Ov Create() { var r = new NvGpuPState20V2Ov { voltages = new NvGpuPState20BaseVoltageEntryV1[NvapiConst.NVAPI_MAX_GPU_PSTATE20_BASE_VOLTAGES] }; return(r); }
public static NvGpuPerfPStates20InfoV2 Create() { var r = new NvGpuPerfPStates20InfoV2 { version = (uint)(NvapiConst.VERSION2 | (Marshal.SizeOf(typeof(NvGpuPerfPStates20InfoV2)))), pstates = new PStatesArray16[NvapiConst.NVAPI_MAX_GPU_PERF_PSTATES], ov = NvGpuPState20V2Ov.Create() }; for (int i = 0; i < r.pstates.Length; i++) { r.pstates[i] = PStatesArray16.Create(); } return(r); }