HeapsIO / heaps

Heaps : Haxe Game Framework
http://heaps.io
MIT License
3.22k stars 340 forks source link

Compile error in latest development #1237

Closed onehundredfeet closed 2 months ago

onehundredfeet commented 2 months ago

I've upgraded hashlink, domkit, hide, but I'm still getting a compile error with the latest heaps.

 ERROR  /Users/rcleven/git/heaps/h3d/impl/GlDriver.hx:599: characters 59-79

 599 |     gl.uniform4fv(s.globals, streamData(hl.Bytes.getArray(buf.globals.toData()), 0, s.shader.globalsSize * 16), 0, s.shader.globalsSize * 4);
     |                                                           ^^^^^^^^^^^^^^^^^^^^
     | haxe.ds._Vector.VectorData<hxd.impl.Float32> should be Array<Unknown<0>>
     | For function argument 'a'

 ERROR  /Users/rcleven/git/heaps/h3d/impl/GlDriver.hx:608: characters 58-77

 608 |     gl.uniform4fv(s.params, streamData(hl.Bytes.getArray(buf.params.toData()), 0, s.shader.paramsSize * 16), 0, s.shader.paramsSize * 4);
     |                                                          ^^^^^^^^^^^^^^^^^^^
     | haxe.ds._Vector.VectorData<hxd.impl.Float32> should be Array<Unknown<0>>
     | For function argument 'a'

 ERROR  /Users/rcleven/git/heaps/hxd/fmt/hmd/Library.hx:263: characters 43-63

 263 |    buf.vertexes = haxe.ds.Vector.fromData(vertexes.getNative());
     |                                           ^^^^^^^^^^^^^^^^^^^^
     | hxd._FloatBuffer.InnerData should be haxe.ds._Vector.VectorData<Unknown<0>>
     | For function argument 'data'
onehundredfeet commented 2 months ago

Needed latest compiler