Skip to content

More F64 / cross-build prep - #869

Open
jacobsorme wants to merge 3 commits into
KaijuEngine:masterfrom
jacobsorme:feature/f64-prep
Open

More F64 / cross-build prep#869
jacobsorme wants to merge 3 commits into
KaijuEngine:masterfrom
jacobsorme:feature/f64-prep

Conversation

@jacobsorme

@jacobsorme jacobsorme commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

✅ Final version

Sorry for lots of changes in the same PR, I think we've landed in a good solution now though.



Took a stab at getting a complete float32 and float64 toolbox for F64 build.

  • Made Mat3f and Mat4f float32 logic for the F64 build (hardcoded float32s instead of build dependent Float). Files mat3.float64.go and mat4.float64.go. Should be all but identical to the float32 build variants
  • Refactored the float32 ASM funcs to be available both as Mat4Multiply for F32 build and as Mat4fMultiply for F64

Both regular and F64 build compiles and runs (the F64 just showing a blank window, still)

@jacobsorme

Copy link
Copy Markdown
Contributor Author

#858

Comment thread src/matrix/mat4.go Outdated
Comment thread src/matrix/float.go Outdated
Comment thread src/matrix/float.go Outdated
Comment thread src/matrix/matrix.simd.go Outdated
@jacobsorme
jacobsorme force-pushed the feature/f64-prep branch 2 times, most recently from 8476f06 to d80e3ad Compare July 8, 2026 17:23
@jacobsorme jacobsorme changed the title More F64 / cross-build generics prep More F64 / cross-build prep Jul 8, 2026
@BrentFarris

Copy link
Copy Markdown
Contributor

Doing a bit of OT at work this week, I'll review this asap, thanks!

@jacobsorme

Copy link
Copy Markdown
Contributor Author

No worries, good luck! Just thought of reflect for new types, like you fixed after an earlier PR, maybe we’ll need a fix here too?

Comment thread src/matrix/mat3.float64.go
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

Successfully merging this pull request may close these issues.

2 participants