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

Implement custom Drop for IRVersionedCSInfo #25

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

MarijnS95
Copy link
Member

Every IRVersioned*Info structure has an accompanying IRShaderReflectionRelease*Info() function to clean up allocated pointers inside, mostly strings. Even though IRVersionedCSInfo doesn't contain any pointers, it is a versioned structure that could be extended in the future with allocated objects, so we should call the existing (currently no-op) Release function on it prematurely.

@MarijnS95 MarijnS95 added the I - BREAKING CHANGE Pull request contains breaking changes label Aug 2, 2024
Every `IRVersioned*Info` structure has an accompanying
`IRShaderReflectionRelease*Info()` function to clean up allocated
pointers inside, mostly strings.  Even though `IRVersionedCSInfo`
doesn't contain any pointers, it is a versioned structure that could
be extended in the future with allocated objects, so we should call the
existing (currently no-op) `Release` function on it prematurely.
@MarijnS95 MarijnS95 force-pushed the drop-versioned-cs-info branch from a0ef24b to dda00cc Compare September 26, 2024 10:00
@MarijnS95 MarijnS95 added this pull request to the merge queue Sep 26, 2024
Merged via the queue into main with commit c1525ef Sep 26, 2024
4 checks passed
@MarijnS95 MarijnS95 deleted the drop-versioned-cs-info branch September 26, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I - BREAKING CHANGE Pull request contains breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants