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

Fields on a struct declared after method not recognized #226

Open
JoaoBaptMG opened this issue Feb 25, 2022 · 0 comments
Open

Fields on a struct declared after method not recognized #226

JoaoBaptMG opened this issue Feb 25, 2022 · 0 comments

Comments

@JoaoBaptMG
Copy link

When a method defined in a struct uses fields that are defined after that method, HLSL Tools does not recognize and highlight them. For example:
image

Example code:

struct ExampleStruct
{
	void exampleMethod(float x, float y)
	{
		field1 = x;
		field2 = y;
	}

	float field1;
	float field2;
};

The fields declared before a method are properly recognized, though:
image

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