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

Uniform type is non-convertable with Nim-2.2.0 #21

Open
ehmry opened this issue Oct 25, 2024 · 2 comments
Open

Uniform type is non-convertable with Nim-2.2.0 #21

ehmry opened this issue Oct 25, 2024 · 2 comments

Comments

@ehmry
Copy link

ehmry commented Oct 25, 2024

When building with the Nim-2.2.0 release the Uniform[T] types are not being implicitly converted to T.

examples/triangle.nim(17, 21) Error: type mismatch
Expression: MVP * vec4(vPos.arr[0], vPos.arr[1], 0.0, 1.0)
  [1] MVP: Uniform[vmath.Mat4]
  [2] vec4(vPos.arr[0], vPos.arr[1], 0.0, 1.0): Vec4

Expected one of (first mismatch at [position]):
[1] proc `*`[T](a: GMat4[T]; b: GVec4[T]): GVec4[T]

NixOS/nixpkgs#350913

@treeform
Copy link
Owner

treeform commented Nov 5, 2024

I need to look into this. I think I ran into this as well will probably have a fix soon.

@treeform
Copy link
Owner

treeform commented Nov 7, 2024

nim-lang/Nim#24415

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

2 participants