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

Allow .member syntax on vector and scalars. #6424

Merged
merged 11 commits into from
Feb 27, 2025

Conversation

csyonghe
Copy link
Collaborator

No description provided.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Feb 22, 2025
@csyonghe csyonghe requested a review from a team as a code owner February 22, 2025 23:56
@CLAassistant
Copy link

CLAassistant commented Feb 22, 2025

CLA assistant check
All committers have signed the CLA.

else if (auto scalarType = as<BasicExpressionType>(type))
{
String typeStr;
if (scalarType)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Redundant conditional

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@cheneym2
Copy link
Collaborator

I don't see a test that verifies .member on scalars, as the commit title suggests. Sorry if I'm just not seeing what I'm seeing. Can you extend a scalar with a method and use it like in vector-member.slang?

@csyonghe
Copy link
Collaborator Author

Sure, will add a test for scalar.

@csyonghe csyonghe merged commit 6cf15f4 into shader-slang:master Feb 27, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants