macOS moltenVK support and SIGBUS handling (#11252)

This commit is contained in:
nastys 2021-12-12 21:35:56 +01:00 committed by GitHub
parent 2f93df480b
commit 08333e0876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 5 deletions

View file

@ -681,8 +681,8 @@ namespace glsl
"{\n"
" vec4 low = cl * 12.92;\n"
" vec4 high = 1.055 * pow(cl, vec4(1. / 2.4)) - 0.055;\n"
" bvec4 select = lessThan(cl, vec4(0.0031308));\n"
" return clamp(mix(high, low, select), 0., 1.);\n"
" bvec4 selection = lessThan(cl, vec4(0.0031308));\n"
" return clamp(mix(high, low, selection), 0., 1.);\n"
"}\n\n";
}