Open JoaoBaptMG opened 2 years ago
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:
struct
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:
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:Example code:
The fields declared before a method are properly recognized, though: