vkd3d-shader/hlsl: Add determinant() function.
Files
3Yeah, it's quite unfortunate. Though notice that in !310 (comment 43922) a kind of solution was suggested for avoiding writing the type too many times. We might even introduce some helper doing
sprintf()
, compilation and memory handling all at once.I don't think I care enough on this question. It seems easy, but halves are indeed rarely used. We'll need to fix lit() though; I'll send a patch for that one.
If we really care about not specifying the printf argument multiple times, we can use something like [1] and [2]. I do worry though, since this means we're not using ANSI stdio anymore, and maybe that'll break something subtle.
Making sure I get this right. The proper solution would be to generate float vs half functions? For positional arguments we'll have a single "%1$s" format with a single typename argument?
Yes, that's what I would try. Zeb has some concerns about breaking something with her patch that plugs in
_vsprintf_p()
, though. I'm willing to take the risk, though, but she definitely knows better about these kind of issues than I do. We're probably waiting for 1.9 to be released anyway.