コード例 #1
0
        public OutputCapsCompatibility CheckCompatibility(OutputRequirements req)
        {
            OutputCapsCompatibility comp = new OutputCapsCompatibility();

            comp.supportDeviceType   = Manager.CheckDeviceType(adapter, req.DeviceType, req.DeviceFormat, req.DeviceFormat, req.Windowed);
            comp.supportDeviceFormat = true;// Manager.CheckDeviceFormat(adapter, req.DeviceType, req.DeviceFormat, Usage.RenderTarget, ResourceType.Surface, DepthFormat.D16);
            comp.supportDepthFormat  = Manager.CheckDepthStencilMatch(adapter, req.DeviceType, req.DeviceFormat, req.DeviceFormat, req.DepthFormat);

            return(comp);
        }
コード例 #2
0
        public OutputCapsCompatibility CheckCompatibility(GraphicsDeviceRequirements req)
        {
            // TODO: Check we only have stuff we need in the setup process and that it works
            OutputCapsCompatibility comp = new OutputCapsCompatibility();

            comp.supportDeviceType   = Manager.CheckDeviceType(adapter, req.DeviceType, req.DisplayFormat, req.DisplayFormat, req.Windowed);
            comp.supportDeviceFormat = true;// Manager.CheckDeviceFormat(adapter, req.DeviceType, req.DeviceFormat, Usage.RenderTarget, ResourceType.Surface, DepthFormat.D16);
            comp.supportDepthFormat  = Manager.CheckDepthStencilMatch(adapter, req.DeviceType, req.DisplayFormat, req.DisplayFormat, req.DepthFormats[0]);

            comp.fullMatch = comp.supportDepthFormat && comp.supportDeviceFormat &&
                             comp.supportDeviceType && HardwareTnL == req.HardwareTnL &&
                             req.MultiSample <= antialiasCaps.MaxSupported;

            return(comp);
        }
コード例 #3
0
        public OutputCapsCompatibility CheckCompatibility(GraphicsDeviceRequirements req)
        {
            // TODO: Check we only have stuff we need in the setup process and that it works
            OutputCapsCompatibility comp = new OutputCapsCompatibility();
            comp.supportDeviceType = Manager.CheckDeviceType(adapter, req.DeviceType, req.DisplayFormat, req.DisplayFormat, req.Windowed);
            comp.supportDeviceFormat = true;// Manager.CheckDeviceFormat(adapter, req.DeviceType, req.DeviceFormat, Usage.RenderTarget, ResourceType.Surface, DepthFormat.D16);
            comp.supportDepthFormat = Manager.CheckDepthStencilMatch(adapter, req.DeviceType, req.DisplayFormat, req.DisplayFormat, req.DepthFormats[0]);

            comp.fullMatch = comp.supportDepthFormat && comp.supportDeviceFormat &&
                             comp.supportDeviceType && HardwareTnL == req.HardwareTnL &&
                             req.MultiSample <= antialiasCaps.MaxSupported;

            return comp;
        }