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

[BUG]: Variable naming #1240

Open
laurentchougrani opened this issue Jun 2, 2024 · 1 comment
Open

[BUG]: Variable naming #1240

laurentchougrani opened this issue Jun 2, 2024 · 1 comment
Labels

Comments

@laurentchougrani
Copy link

Describe the bug

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]>"

Environment

  • ILGPU version: [e.g., 1.5.1]
  • .NET version: [e.g., .NET 8]
  • Operating system: [e.g., Windows 10]
  • Hardware (if GPU-related): [e.g., NVIDIA GeForce GTX 1080]

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

@MoFtZ
Copy link
Collaborator

MoFtZ commented Jun 2, 2024

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.

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

No branches or pull requests

2 participants