Esempio n. 1
0
        public static PStatesArray16 Create()
        {
            PStatesArray16 r = new PStatesArray16 {
                clocks       = new NvGpuPState20ClockEntryV1[NvapiConst.NVAPI_MAX_GPU_PSTATE20_CLOCKS],
                baseVoltages = new NvGpuPState20BaseVoltageEntryV1[NvapiConst.NVAPI_MAX_GPU_PSTATE20_BASE_VOLTAGES]
            };

            return(r);
        }
Esempio n. 2
0
        public static NvGpuPerfPStates20InfoV1 Create()
        {
            var r = new NvGpuPerfPStates20InfoV1 {
                version = (uint)(NvapiConst.VERSION1 | (Marshal.SizeOf(typeof(NvGpuPerfPStates20InfoV1)))),
                pstates = new PStatesArray16[NvapiConst.NVAPI_MAX_GPU_PERF_PSTATES]
            };

            for (int i = 0; i < r.pstates.Length; i++)
            {
                r.pstates[i] = PStatesArray16.Create();
            }

            return(r);
        }