示例#1
0
        public DxgiModeDesc1 FindClosestMatchingMode(DxgiModeDesc1 modeToMatch, object concernedDevice)
        {
            DxgiModeDesc1 closestMatch;

            this.output.FindClosestMatchingMode1(ref modeToMatch, out closestMatch, concernedDevice);
            return(closestMatch);
        }
示例#2
0
        public DxgiModeDesc1[] GetDisplayModeList(DxgiFormat format, DxgiEnumModes modes)
        {
            uint numModes = 0;

            this.output.GetDisplayModeList1(format, modes, ref numModes, null);

            DxgiModeDesc1[] displayModes = new DxgiModeDesc1[numModes];

            this.output.GetDisplayModeList1(format, modes, ref numModes, displayModes);

            return(displayModes);
        }