Версии DirectX

From Valve Developer Community
< Ru
Revision as of 23:49, 8 June 2024 by Clash (talk | contribs)
Jump to navigation Jump to search
English (en)日本語 (ja)Русский (ru)Translate (Translate)

Это описание возможностей каждой версии DirectX в качестве справочного материала для созданиия резервной поддержки старых графических процессоров с более низким уровнем функциональности DirectX. В каждом разделе указаны возможности не поддерживаемые в предыдущих версиях DirectX

Для проверки более низние уровни функциональности DirectX на передовых графических картах, используйте CVAR mat_dxlevel. Установите CVAR в 60, 70, 80, 81, 90, 95 или 98 (Xbox 360) для установки соответствующей версии DirectX. Не возможно использовать версию DirectX выше, чем доступно графическому оборудованию.

Icon-Important.pngВажно:Please note that this has nothing to do with changing the Direct3D renderer (D3D for short, incorrectly refers to DirectX renderer) to use Direct3D 8 or older. Source will always run on Direct3D 9 (or Direct3D 11/12 on some third-party branches). However, the materials, effects and shaders will be changed or disabled for compatibility with older GPUs that predates Direct3D 9, or to allow modern tools such as Nvidia Nvidia's RTX Remix RTX Remix (also used in Portal with RTX Portal with RTX and upcoming Half-Life 2 RTX Half-Life 2 RTX), which currently only support DX9 (D3D9) or earlier (with compatibility level 8.x or lower, or with fixed function pipelines), to work properly.
Note.pngПримечание:Source games and engine branches released by Valve since Left 4 Dead Left 4 Dead no longer support DirectX compatibility levels below DirectX 9, aswell replaced the old DirectX compatibility level with new shader & effect details option. The only modern Source engine branch that still supports older DirectX versions (down to 8.0) is Source 2013 Source 2013. Some third-party Source engine branch or Source successor, Source 2, will only support DirectX 11 (including the Direct3D renderer) or later.
Note.pngПримечание:On most modern PCs with modern GPUs, these always run with DX11 or newer (and fully support all DX9 features in Source). Players running on DX8 level cards or older on systems with Steam are non-existent (according to Steam Survey). Make alternate assets if you want, but almost no one will see them unless they launched the game with -dxlevel 80/81 manually or have a very old system, or by launching a game that utilizes Nvidia Nvidia RTX Remix RTX Remix, which was only used in Portal with RTX Portal with RTX and Half-Life 2 RTX Half-Life 2 RTX, used to convert most of the DX8 level graphics, or by triggering a bug that Source 2013 Source 2013 commonly had which only occurs on some modern systems.
Icon-Bug.pngБаг:On some modern systems, when a Source 2013 Source 2013 game is run for the first time, the game may default to DirectX 8 materials.
To fix this, run the game once with -dxlevel 95 command line option, change your video settings, then save by clicking OK (or Apply then OK), then close the game, open it again, it should show as Software DirectX level: DirectX 9.0+ on the video options.  [нужно проверить в ?]
Icon-Bug.pngБаг:Some effects appears to be missing (or barely visible), such as func_illusionary used for fake volumetric lighting, or the game looks more desaturated compared to DirectX 8 mode.[1][2] See #Train Station  [нужно проверить в ?]

Возможности DirectX

Warning.pngПредупреждение:Since Source 2006 Source 2006, DirectX 6 is no longer supported.

Since Source 2007 Source 2007 or Source 2009 Source 2009, DirectX 7 is no longer supported.
Starting with Версия платформы Left 4 Dead Версия платформы Left 4 Dead and later Source games, all DirectX 8 versions are no longer supported.
In Portal with RTX Portal with RTX and in other RTX Remix Source games, the game will run on DirectX 7 or 8 mode in order to make RTX Remix RTX Remix work. Also, when using Vulkan renderer on non-RTX Remix games, using dxlevel lower than 90, such as 80/81 for DirectX 8 will cause the game to not render properly.

DirectX 6 / уровень совместимости D3D9 с DX6

Графические карты класса DirectX 6, это Nvidia TNT2 и Matrox G400.

DirectX 7 / уровень совместимости D3D9 с DX7

Графические карты класса DirectX 7, это Nvidia GeForce 256, 2, 2MX и 4MX, а так же ATI Radeon серии 7xxx.

Note.pngПримечание:RTX Remix games such as Portal with RTX Portal with RTX and the upcoming Half-Life 2 RTX Half-Life 2 RTX render the graphics in this DirectX level with D3D9 renderer, or possibly in DX8 level mode, by replacing the textures and lighting with raytraced ones, then rendering in Vulkan after converting D3D9 to Vulkan.

Особенности

  • Капельные тени
  • Перемещение смешанных текстур

DirectX 8.0 / уровень совместимости D3D9 с DX8

Графические карты класса DirectX 8, это Nvidia GeForce4 Ti и большинство из серии GeForce FX 5x00 (хотя технически - это карты класса DirectX 9, но они испытывают большие проблемы при использовании DX9).

Note.pngПримечание:Due to a bug in some Source 2013 Source 2013 games, when the game is launched for the first time, it may default to DirectX 8.0, even if you have a newer GPU.
A bug report can be found here: Issue 540 on GitHub
Note.pngПримечание:RTX Remix games such as Portal with RTX Portal with RTX and the upcoming Half-Life 2 RTX Half-Life 2 RTX render the graphics in this DirectX level with D3D9 renderer, or possibly in DX7 level mode, by replacing the textures and lighting with raytraced ones, then rendering in Vulkan after converting D3D9 to Vulkan.

Особенности

  • Эффект преломления с использованием du/dv карты
  • Динамические тени
  • Направленное освещение на world браши с помощью карт нормалей
  • Зеркальный эффект кубической текстуры
  • Кубическая текстура воды
  • Низко-качественные водные отражения (использовать с осторожностью)

DirectX 8.1 / уровень совместимости D3D9 с DX8.1

Графические карты класса DirectX 8.1, это Nvidia GeForce FX 5800 и 5900, а так же ATI Radeon 8500/9100 и 9000/9200.

Особенности

  • Мягкие динамические тени

DirectX 9 / D3D9 (модель оттенений 2)

Графические карты класса DirectX 9, это серии Nvidia GeForce 6600 и 6800, а так же ATI Radeon 9500/9600, 9700/9800, X300/X600 и X800.

Особенности

  • Эффект преломления с использованием рельефной карты
  • Высоко-качественные водные отражения (часто используется)
  • Более мягкие динамические тени
    • This means that the "High" shadows detail option will be visible and can be selected (except on Intel GPUs by default).
  • Наложение нормалей света на модели
  • Улучшенное качество эффектов отражения

Since Source 2006 Source 2006:

Since Source 2007 Source 2007:

  • Размытие в движении
"dxlevel 92"

This is equivalent to dxlevel 95, but use the translator ToGL to convert the DirectX calls to OpenGL calls. Only on macOS macOS and Linux Linux, and other platforms/operating systems that do not support Direct3D and DirectX.

DirectX 9 / D3D9.0c - Shader Model 3 (Во всех играх начиная с Source 2006 Source 2006)

Referred to as "DirectX 9.0+" and "dxlevel 95". Last version supported for all version of Windows 98/98SE/ME/2000 and XP. Older Source 2 games like Dota 2 Dota 2 previously supported Direct3D 9, before it was dropped in 2021.

Features

DX9Ex

Referred to as "dxlevel 98". Made specifically for Xbox 360 Xbox 360.

Warning.pngПредупреждение:Doesn't work or doesn't do anything much in PC builds of any game (the game will reset to dxlevel 95 after changing video settings). Only works for Xbox 360, where it is required.
Подтвердить:Counter-Strike: Global Offensive Counter-Strike: Global Offensive also use DX9Ex, but it is unknown which "dxlevel" this game is currently using. DX9Ex in CS:GO is not the same as the one used in Xbox 360 Source games.
Features

Differences of dxlevel 95 (DX9 SM 3.0) and 98 (DX9Ex) (according to "dxsupport.cfg" on Half-Life 2 Half-Life 2):

  • Default resolution from 1024x768 (dxlevel 95) to 640x480 (dxlevel 98).
  • "mat_forceaniso" "1" (dxlevel 95) > "8" (dxlevel 98)
  • "mat_forcehardwaresync" "1" (dxlevel 95) > "0" (dxlevel 98)
  • "r_waterforcereflectentities" "0" (dxlevel 95) > "1" (dxlevel 98)

DirectX 10 / D3D10 (DXGI)

Introduced in November 2006 with the release of Windows Windows Vista, and only supports the said operating systems, DX10 is not supported on Windows XP. Referred to as "dxlevel 100".

DirectX 10-class graphics cards include the Nvidia Nvidia GeForce 8 series, Intel GMA X3100, X3500, GMA 4500, Intel HD Graphics (2010) and the Radeon ATI Radeon HD 2000/3000 series cards.

Games with Direct3D 10 (DX10) support

There are currently no Source engine branch which actually render in Direct3D 10 (aka DX10 mode) despite being mentioned in this GDC 2008 PDF which shows some differences.
All of the DX10 features shown in that PDF file were already available in "dxlevel 95" (DirectX 9 SM 3.0) and Xbox 360 Xbox 360 (which uses "dxlevel 98").

DX9/D3D9 renderer with DX10 feature level (только в Source Filmmaker SFM, Dota 2 Dota 2 (pre-Reborn))

Note.pngПримечание:This version is only used in Source FilmmakerSource Filmmaker by default, aswell as the original release of Dota 2 Dota 2,[3] and does nothing on other Source games. This will NOT enable Direct3D 10 at all unless the engine is modified.

DirectX 11 / D3D11 (DXGI)

Информацию о more DX11 features (which may or may not used in third-party Source Source or Source 2 Source 2 engine), смотрите здесь Wikipedia's DirectX 11 page.

Introduced in 2009 with the release of Windows Windows 7, DirectX 11 requires Windows Vista (with SP2 & Platform Update installed) and later, and some later DX11 versions require Windows 7, 8 or later. Referred to as "dxlevel 110".

DirectX 11-class graphics cards include the Nvidia Nvidia GeForce 400 (except GeForce 405) series, Intel HD Graphics 2500, HD 4000 (2012), and the Radeon ATI Radeon HD 5000 series.

Source 2 Source 2 natively supports and runs on this version of DirectX by default, but previous versions are also available for older hardware that only support DX9 (except in Dota 2 Dota 2 since 2021 update). Prior to Source 2 (and other Source third-party branch) releases, Titanfall branch Titanfall branch was the only Source Source branch that supported DX11.

Features

  • Shader Model 5.0
  • Multithreaded rendering

Games with Direct3D 11 (DX11) support

DirectX 12 / D3D12 (DXGI)

Introduced in 2015 with the release of Windows Windows 10, later backported in 2019 to Windows Windows 7. DX12 and D3D12 are not supported on Windows 8 or 8.1. Referred to as "dxlevel 120".

DirectX 12-class graphics cards include the Nvidia Nvidia GeForce 900 series, Intel HD Graphics (from 2015-2016), and the Radeon AMD Radeon 200 (GCN 2.0), Radeon 300 series cards.

Note.pngПримечание:This is only available in Apex Legends Apex Legends. It can be enabled using -eac_launcher_settings SettingsDX12.json launch options.
There are currently no Source 2 games that use DirectX 12 (or the D3D12 renderer).

Features

Информацию о more DX12/D3D12 features (which may or may not used in third-party Source Source or Source 2 Source 2 engine), смотрите здесь Wikipedia's Direct3D 12 page.
  • Low-level rendering API, similar to Vulkan
  • Shader Model 5.1
  • Raytracing (since Windows October 2018 Update)
    • Note.pngПримечание:This ray tracing feature is also available in Portal RTX, but it's uses a different renderer (Vulkan) with DirectX 8 feature level.
  • Dynamic refresh rate (since Windows 11)

Скриншоты с примерами

Каналы

Эти скриншоты демонстрируют перемещение смешанной текстуры, направленный свет и эффект отражения от кубической текстуры воды.

Предшествующая платформа Новая платформа (Source 2013)
DirectX 6.0 Предшествующая платформа - DirectX 6.0 (dxlevel 60) Не поддерживается с Source 2006
DirectX 7.0 Предшествующая платформа - DirectX 7.0 (dxlevel 70) Не поддерживается с Source 2007
DirectX 8.0 Предшествующая платформа - DirectX 8.0 (dxlevel 80) Новая платформа - DirectX 8.0 (dxlevel 80)
DirectX 8.1 Предшествующая платформа - DirectX 8.1 (dxlevel 81) Новая платформа - DirectX 8.1 (dxlevel 81)
DirectX 9.0+ Предшествующая платформа - DirectX 9.0+ (dxlevel 90) Новая платформа - DirectX 9.0+ (dxlevel 95)

Dropship

Эти скриншоты показывают разный уровень качества теней, начиная с нуля, заканчивая мягкими динамичными тенями.

Предшествующая платформа Новая платформа (Source 2013)
DirectX 6.0 Предшествующая платформа - DirectX 6.0 (dxlevel 60) Не поддерживается с Source 2006
DirectX 7.0 Предшествующая платформа - DirectX 7.0 (dxlevel 70) Не поддерживается с Source 2007
DirectX 8.0 Предшествующая платформа - DirectX 8.0 (dxlevel 80) Новая платформа - DirectX 8.0 (dxlevel 80)
DirectX 8.1 Предшествующая платформа - DirectX 8.1 (dxlevel 81) Новая платформа - DirectX 8.1 (dxlevel 81)
DirectX 9.0+ Предшествующая платформа - DirectX 9.0+ (dxlevel 90) Новая платформа - DirectX 9.0+ (dxlevel 95)

Приливные воды

Эти скриншоты показывают направленное освещение и эффект отражения от кубической текстуры.

DirectX 6.0 Предшествующая платформа - DirectX 6.0 (dxlevel 60)
DirectX 7.0 Предшествующая платформа - DirectX 7.0 (dxlevel 70)
DirectX 8.0 Предшествующая платформа - DirectX 8.0 (dxlevel 80)
DirectX 8.1 Предшествующая платформа - DirectX 8.1 (dxlevel 81)
DirectX 9.0+ Предшествующая платформа - DirectX 9.0+ (dxlevel 90)

Зомби

Эти скриншоты демонстрируют использование карты нормалей на моделях. Последний кадр с полной картей нормалей с освещением.

DirectX 6.0 Предшествующая платформа - DirectX 6.0+ (dxlevel 60)
DirectX 7.0 Предшествующая платформа - DirectX 7.0+ (dxlevel 70)
DirectX 8.0 Предшествующая платформа - DirectX 8.0+ (dxlevel 80)
DirectX 8.1 Предшествующая платформа - DirectX 8.1+ (dxlevel 81)
DirectX 9.0+ Предшествующая платформа - DirectX 9.0+ (dxlevel 90)

Half-Life 2 Train Station (fake volumetric lighting)

These screenshots shows the differences between DirectX 8 and 9 on the fake volumetric lighting. The volumetric lighting was less visible with some effects missing on DX9, compared to DX8,[1][2] likely because of a bug introduced since Source 2007 Source 2007/Source 2009 Source 2009.[подтвердить]

Note.pngПримечание:This screenshot was taken from the latest version of Half-Life 2 Half-Life 2, which runs on Source 2013 Source 2013, on maximum possible settings, so there might be differences in older versions of Half-Life 2 Half-Life 2.
DirectX 8.0 New Engine - DirectX 8.0 (dxlevel 80)
DirectX 8.1 New Engine - DirectX 8.1 (dxlevel 81)
DirectX 9.0+ New Engine - DirectX 9.0+ (dxlevel 90)
DirectX 9.0+ (after reloading the map) New Engine - DirectX 9.0+, after reloading the map (dxlevel 90)

Portal Portals

These screenshots compares the texture and particles quality on the portals.

DirectX 7.0 and earlier Unsupported and non-functional. Screenshot identical to DirectX 8.0.
DirectX 8.0 Portals on DirectX 8.0 (dxlevel 80)
DirectX 8.1 Portals on DirectX 8.1 (dxlevel 81)
DirectX 9.0+ Portals on DirectX 9.0+ (dxlevel 95)


См. также