-
Notifications
You must be signed in to change notification settings - Fork 15
Adds tests for the new Morton Code class #187
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
Open
Fletterio
wants to merge
13
commits into
master
Choose a base branch
from
mortons
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f2ea51d
Morton code tests
Fletterio 8f4e452
Morton codes creating properly
Fletterio 0aedfd9
All tests passing, HLSL compiles fine!
Fletterio ea42d5b
Rename example
Fletterio 2ba08a4
Add tests for AddCarry and SUbBorrow intrinsics
Fletterio f00bbf6
Disable intrinsic tests for uSUbBorrow for the time being, start copy…
Fletterio b2d87c3
Added extensive tests for Morton codes
Fletterio c68c336
Done with tests
Fletterio d906bb2
Merged master
Fletterio f05dec4
Clarifying comment for blocker issue
Fletterio b13fdc7
Merge branch 'master' into mortons
08c898d
Reindex mortons example from 12 to 73
7f8dd73
Global variable of hlsl to use NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| //#include "nbl/builtin/hlsl/morton.hlsl" | ||
| #include "nbl/builtin/hlsl/cpp_compat.hlsl" | ||
|
|
||
| NBL_CONSTEXPR uint32_t bufferSize = 256; | ||
|
|
||
| // Proper coverage would require writing tests for ALL possible sign, dimensions and width configurations | ||
| //using morton_t2 = nbl::hlsl::morton::code<true, 8, 2>; // Fits in an int16_t | ||
| using vector_t2 = nbl::hlsl::vector<int16_t, 3>; | ||
devshgraphicsprogramming marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| struct PushConstantData | ||
| { | ||
| uint64_t deviceBufferAddress; | ||
| }; | ||
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
File renamed without changes.
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
File renamed without changes.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.