Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existent problems reported #242

Open
Nintynuts opened this issue Nov 16, 2022 · 0 comments
Open

Non-existent problems reported #242

Nintynuts opened this issue Nov 16, 2022 · 0 comments

Comments

@Nintynuts
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant