Skip to content

Refactoring Two functions into One#3124

Merged
MrSidims merged 1 commit intoKhronosGroup:mainfrom
EbinJose2002:pointer_type
Apr 23, 2025
Merged

Refactoring Two functions into One#3124
MrSidims merged 1 commit intoKhronosGroup:mainfrom
EbinJose2002:pointer_type

Conversation

@EbinJose2002
Copy link
Contributor

  • Refactored addUntypedPointerKHRType and addPointerType functions into a single function (It was marked as TODO)
  • Combined both functions into one with return type SPIRVType *
  • Also re inserted an assert and removed unnecessary if (Marked as TODO)

@MrSidims MrSidims requested a review from vmaksimo April 22, 2025 09:37
Copy link
Contributor

@MrSidims MrSidims left a comment

Choose a reason for hiding this comment

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

LGTM, but lets hold the merge for a while, so we could fix the CI first

Comment on lines 2352 to 2353
// TODO: refactor addPointerType and addUntypedPointerKHRType in one
// method if possible.
Copy link
Contributor

Choose a reason for hiding this comment

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

can remove TODO now :)

- Combined both functions into one with return type SPIRVType *
- Also re inserted an assert and removed unnecessary if
@MrSidims MrSidims merged commit 19d67bd into KhronosGroup:main Apr 23, 2025
6 of 9 checks passed
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