d3d11converter: Fix runtime compiled shader code

Restore mistakenly deleted code in a previous MR
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6803

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7138>
This commit is contained in:
Seungha Yang 2024-07-04 22:49:38 +09:00 committed by GStreamer Marge Bot
parent b19a687437
commit e6c19a7922

View file

@ -1630,6 +1630,32 @@ static const char g_PSMain_converter_str[] =
" }\n"
"};\n"
"\n"
"class ConverterRange : IConverter\n"
"{\n"
" float4 Execute (float4 sample)\n"
" {\n"
" float3 out_space;\n"
" out_space.x = postCoeff.CoeffX.x * sample.x;\n"
" out_space.y = postCoeff.CoeffY.y * sample.y;\n"
" out_space.z = postCoeff.CoeffZ.z * sample.z;\n"
" out_space += postCoeff.Offset;\n"
" return float4 (clamp (out_space, postCoeff.Min, postCoeff.Max), sample.a);\n"
" }\n"
"};\n"
"\n"
"class ConverterSimple : IConverter\n"
"{\n"
" float4 Execute (float4 sample)\n"
" {\n"
" float3 out_space;\n"
" out_space.x = dot (postCoeff.CoeffX, sample.xyz);\n"
" out_space.y = dot (postCoeff.CoeffY, sample.xyz);\n"
" out_space.z = dot (postCoeff.CoeffZ, sample.xyz);\n"
" out_space += postCoeff.Offset;\n"
" return float4 (clamp (out_space, postCoeff.Min, postCoeff.Max), sample.a);\n"
" }\n"
"};\n"
"\n"
"class ConverterGamma : IConverter\n"
"{\n"
" float4 Execute (float4 sample)\n"