Axiom.RenderSystems.DirectX9.D3DRenderSystem.CheckVertexTextureFormats C# (CSharp) Метод

CheckVertexTextureFormats() приватный метод

private CheckVertexTextureFormats ( D3DRenderWindow renderWindow ) : bool
renderWindow D3DRenderWindow
Результат bool
        private bool CheckVertexTextureFormats(D3DRenderWindow renderWindow)
        {
            var anySupported = false;

            var bbSurf = (Surface[])renderWindow[ "DDBACKBUFFER" ];
            var bbSurfDesc = bbSurf[0].Description;

            for (var pf = PixelFormat.L8; pf < PixelFormat.Count; pf++)
            {
                var fmt = D3DHelper.ConvertEnum( pf );
                if ( !_pD3D.CheckDeviceFormat( _activeD3DDriver.AdapterNumber, DeviceType.Hardware, bbSurfDesc.Format,
                                               Usage.QueryVertexTexture, ResourceType.Texture, fmt ) )
                    continue;

                // cool, at least one supported
                anySupported = true;
                LogManager.Instance.Write( "D3D9: Vertex texture format supported - {0}",
                                           PixelUtil.GetFormatName( pf ) );
            }
            return anySupported;
        }
D3DRenderSystem