mirror of https://github.com/mpv-player/mpv
9b2dae79b1
ra_d3d11 uses the SPIR-V compiler to translate GLSL to SPIR-V, which is then translated to HLSL. This means it always exposes the same GLSL version that the SPIR-V compiler supports (4.50 for shaderc/glslang.) Despite claiming to support GLSL 4.50, some features that are tied to the GLSL version in OpenGL are not supported by ra_d3d11 when targeting legacy Direct3D feature levels. This includes two features that mpv relies on: - Reading from gl_FragCoord in the fragment shader (requires FL 10_0) - textureGather from any texture component (requires FL 11_0) These features have been exposed as new RA caps. |
||
---|---|---|
.. | ||
common.h | ||
context.c | ||
context.h | ||
context_wayland.c | ||
context_win.c | ||
context_xlib.c | ||
formats.c | ||
formats.h | ||
malloc.c | ||
malloc.h | ||
ra_vk.c | ||
ra_vk.h | ||
spirv_nvidia.c | ||
utils.c | ||
utils.h |