I stumble upon something yesterday while playing with ILGpu :
naming a variable "Position" causes au compilation error : the variable is automatically registered as an int8 (my "Position was a Vector3).
The inner exception is : "Cannot convert from 'Int8' to type 'Struct<Float32 [0], Float32 [4], Float32 [8]>"
1 create a struct with a variable "Position" that is not an int8
2 Map an Action where the "whatever" contains a method that calls for the "Position" variable.
3 the mapping geenrate an exception
hi @laurentchougrani. Can you please provide some sample code the reproduces the issue? Ideally, this would be a minimal project that can be compiled and demonstrates your issue.
Describe the bug
I stumble upon something yesterday while playing with ILGpu :
Environment
Steps to reproduce
1 create a struct with a variable "Position" that is not an int8 2 Map an Action where the "whatever" contains a method that calls for the "Position" variable.
3 the mapping geenrate an exception
Expected behavior
naming a variable should not infer its type.
Additional context
No response