-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- I never was able to reproduce the issue described by a user. - I asked them for a repro project, but they moved to a different API (ImportTexture) and are not interested to spend more time on the `ImportBuffer` one. - They told me they will be able to send us their project in the near future, so we might want to investigate what happened (spending some time to try to reproduce the problem described) - Meanwhile, I'm pushing this Unit Test, proving the API works well. This PR is also fixing the Gizmo test, which was failing from time to time on Yamato and 100% of the time on my computer, locally.
- Loading branch information
1 parent
b8bb7ca
commit 92378cf
Showing
4 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
Packages/com.unity.render-pipelines.core/Tests/Editor/BufferCopyTest.compute
This file contains 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 @@ | ||
#pragma kernel CSMain | ||
|
||
RWStructuredBuffer<float> resultBuffer; | ||
|
||
[numthreads(1, 1, 1)] | ||
void CSMain(uint3 id : SV_DispatchThreadID) | ||
{ | ||
// Fill the first four values with 1 | ||
for (int i = 0; i < 4; i++) | ||
{ | ||
resultBuffer[i] = 1.0f; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
Packages/com.unity.render-pipelines.core/Tests/Editor/BufferCopyTest.compute.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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