Repository navigation
Turn stores to initializer for static variable where possible. - #2122
Merged
Adam Yang (adam-yang) merged 7 commits intoApr 22, 2019
Merged
Conversation
Contributor
|
Additional tests we should have:
|
Tristan Labelle (tristanlabelle)
suggested changes
Apr 12, 2019
Tristan Labelle (tristanlabelle)
approved these changes
Apr 12, 2019
Tristan Labelle (tristanlabelle)
left a comment
Contributor
There was a problem hiding this comment.
Still could use a few more tests but code looks good.
Contributor
Author
|
I'm adding the tests, but there's more code changes to come... Just had some more ideas. |
…Added more tests, also now using batch test
| CodeGenTestCheck(L"function_call_initializer.hlsl"); | ||
| CodeGenTestCheck(L"function_call_initializer_uint.hlsl"); | ||
| CodeGenTestCheck(L"function_call_initializer_vec.hlsl"); | ||
| CodeGenTestCheckBatchDir(L"initializer"); |
Contributor
There was a problem hiding this comment.
I meant that I moved tests around such that all batch tests are under the "batch" directory so that we don't have to add one function here for each new batch directory anymore. Note that you can still test your single subdirectory by using hcttest file-check <directory-path>. The only reason I haven't moved "debug" under "batch" yet is because I have pending code reviews that modify it so it would conflict.
Contributor
|
Good catches! |
Contributor
|
Looking good! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.