Skip to content

Conversation

@Firestar99
Copy link
Collaborator

@Firestar99 Firestar99 commented Aug 26, 2025

f32 params breaks the UI, I have no idea why. Feel free to take over this PR and fix that UI.

@0HyperCube
Copy link
Contributor

I have fixed the UI. You just have to hook up the number input inside the fn property_from_type function @Firestar99.

@Firestar99
Copy link
Collaborator Author

will have a look tomorrow ❤️

@Firestar99 Firestar99 changed the title f32 support for node params Support f32 for node params Aug 27, 2025
Copy link
Collaborator Author

@Firestar99 Firestar99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0HyperCube Thanks for your help, the f32 nodes now work perfectly! ❤️

assert_eq!(
ids,
vec![NodeId(13743208144182721472), NodeId(4607569396187877965), NodeId(16950305885390329527), NodeId(15151181027373658932)]
vec![NodeId(2791689253855410677), NodeId(11246167042277902310), NodeId(1014827049498980779), NodeId(4864562752646903491)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment I left correct? Based on git history, I see them being updated frequently

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think the test network contains a U32(u32), so moving the position of that will change the hash.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0HyperCube what about the comment right above, which github is hiding?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems fair. I don't really see why it matters if the node ids aren't stable across different commits. However most modifications to the TaggedValue take place under the U32 so it probably shouldn't break too much.

@Keavon Keavon changed the title Support f32 for node params Add node input type support for f32 to enable usage on GPU Aug 28, 2025
// ============
// STRUCT TYPES
// ============
Vec2(Vec2),
Copy link
Member

@Keavon Keavon Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's please call this FVec2 because the user-facing name for DVec2 is already "Vec2" and we need to avoid the confusion of the internal version being given the opposite name of the user-facing version. And probably the same for Affine2 -> FAffine2 for consistency. This also lets us discriminate between them in the future for rename purposes if we figure out how to clean this up once there is more Graphene infrastructure in place to handle numeric precision and units.

@Keavon Keavon merged commit 82784b4 into master Aug 28, 2025
4 checks passed
@Keavon Keavon deleted the f32_support branch August 28, 2025 03:08
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.

3 participants