Hi,
On 13/12/21 12:15, Nikolay Sivov wrote:
Something like attached diff?
That looks sensible, except that it should be:
if (type->base_type != HLSL_TYPE_FLOAT && type->base_type != HLSL_TYPE_HALF)
We don't really handle half values so far (and it's not clear how they differ from floats), but at least for typing I guess it makes sense to do the right thing, given that it's easy.
Thanks, Giovanni.