Hi,
Il 15/10/21 19:47, Zebediah Figura (she/her) ha scritto:
What leads you to this conclusion? Even the most obvious case I checked suggests this isn't true:
uniform float2x4 x; uniform float1x4 y;
float4 main() : sv_target { return (x + y).xyzw; }
Ah, interesting. My source was this:
http://shader-playground.timjones.io/cfaa21ebc1961e76a302e48e87a7a033
The error message says: "error X3017: cannot convert from 'const const float4' to 'texture'". But clearly I was too optimistic about the self consistency of the native compiler.
I think for the moment it is safe to drop this patch. Unfortunately it is referenced in the commit message of the following one (05/10), so I'll resend the whole series again. The content of 05/10 still seems to be valid even when tested with swizzling: the type of x+y is the type of x when x and y are a vector and a matrix (in some order) and have the same number of entries.
Thanks, Giovanni.