mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +00:00
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:
parent
b19a687437
commit
e6c19a7922
1 changed files with 26 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue