tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
553 stars 95 forks source link

Non-existent problems reported #242

Open Nintynuts opened 1 year ago

Nintynuts commented 1 year ago

First I was getting a warning for this line of hlsl: r3 = mul(r0.xyz, (float3x4)gWorldToProj); saying:

Implicit truncation from 'float3x4' to 'float1x4

Which is clearly wrong, since it's explicit casting, so I cut the cast type to give this (which should cause the warning): r3 = mul(r0.xyz, gWorldToProj); which ended up with this error:

Variable 'oj' is not declared.

Which looks like it's ignoring the length of characters I cut from the start of the variable name (it's using the start index before I cut for the token start, rather than after)

When I paste the cast type back in, the warning doesn't return, but the invalid error remains.

I don't always get the initial warning though.