コード例 #1
0
        public DxgiModeDesc FindClosestMatchingMode(DxgiModeDesc modeToMatch, object concernedDevice)
        {
            DxgiModeDesc closestMatch;

            this.output.FindClosestMatchingMode(ref modeToMatch, out closestMatch, concernedDevice);
            return(closestMatch);
        }
コード例 #2
0
        public DxgiModeDesc[] GetDisplayModeList(DxgiFormat format, DxgiEnumModes modes)
        {
            uint numModes = 0;

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

            DxgiModeDesc[] displayModes = new DxgiModeDesc[numModes];

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

            return(displayModes);
        }
コード例 #3
0
 public void ResizeTarget(DxgiModeDesc targetParameters)
 {
     this.swapChain.ResizeTarget(ref targetParameters);
 }