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

layers: Remove non-template GetFoo() state tracker methods #3546

Merged

Conversation

jeremyg-lunarg
Copy link
Contributor

Remove these extra wrapper methods so that it easier to find
(and change) places where state lookups occur. The one place where
wrappers are necessary is where a state object is subclassed. These
can probably be templated, once sufficient template magic is acquired.

NOTE: This change converts all result variable to 'auto' not 'auto *'
because most of these will soon become smart pointers causing the
latter to no longer work.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 2386.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 5534 running.

@mark-lunarg
Copy link
Contributor

BTW, this is welcome and long overdue! Thanks.

Remove these extra wrapper methods so that it easier to find
(and change) places where state lookups occur. The one place where
wrappers are necessary is where a state object is subclassed. These
can probably be templated, once sufficient template magic is acquired.

NOTE: This change converts all result variable to 'auto' not 'auto *'
because most of these will soon become smart pointers causing the
latter to no longer work.
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 2401.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 5536 running.

Copy link
Contributor

@ncesario-lunarg ncesario-lunarg left a comment

Choose a reason for hiding this comment

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

Niiice. I had dreams (nightmares?) about doing this. I will sleep better tonight.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 5536 passed.

@jeremyg-lunarg jeremyg-lunarg merged commit b20a824 into KhronosGroup:master Nov 17, 2021
@jeremyg-lunarg jeremyg-lunarg deleted the jeremyg-remove-getfoo branch November 17, 2021 23:01
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.

4 participants