nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.18k stars 179 forks source link

Add DX11 to Source Engine #108

Open howitfeelstobem opened 2 years ago

howitfeelstobem commented 2 years ago

Would be good to see if it's possible to add DX11, because it has better perfomance, and has lots of benefits in making of shaders. I know it would take a lot of time, so good luck. It worths to try.

EnderZip commented 1 year ago

Dx11 succ, do vulkan instead

LegendaryGuard commented 1 year ago

Not sure to add DX11. There should be a better alternative of graphical libraries for Windows. About DirectX, there have been some issues like this: #132

EnderZip commented 1 year ago

Dx11 is the easiest and most compatible api with the source engine, dx11 is the only way. Vulkan is too much work, and opengl is a downgrade

MakeSureDudeDies commented 1 year ago

Vulkan is better, and is on every GPU so yeah, Vulkan > DX11

EnderZip commented 1 year ago

You could just port source to dx11 then use a vulkan translation layer (dxvk)

er2off commented 1 year ago

After trying to port engine for Windows ARM 32 (RT and leaked 15035 build) I agree that we need DX11 or at least DX10.

~~It seems like DX9 does not support shader runtime compilation without D3DX (D3DX is deprecated since Windows 8 and does not distributes in ARM Windows SDK)~~ Upd: Source Engine doesn't support dynamic shader compilation and actually D3DX can be replaced with DirectXMath or ToGL math functions.

Fortunately, D3DCompile supports DX10 or newer, but DX10 backend was not finished by Valve and uses files with DX9 API.