Repository navigation
Struct for normal buf - #43
Xiang Li (python3kgae) merged 4 commits into
Conversation
|
Hi Xiang Li (@python3kgae), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
|
This pull request has two commits, but should probably only have the one for the buffer fix. |
David Peixotto (dmpots)
left a comment
There was a problem hiding this comment.
Need some more tests to exercise more of the code:
- Embedded struct/array to test
CollectScalarTypesfunction. - Mixed types to test the new diagnostic error.
|
|
||
| groupshared Foo sharedData; | ||
|
|
||
| #ifdef DX12 |
There was a problem hiding this comment.
We should either compile with the root signature unconditionally or just delete it.
David Peixotto (dmpots)
left a comment
There was a problem hiding this comment.
New tests are useful. Just need to make sure we call them all :) Otherwise I have only some minor suggestions for improvement.
I think the tests themselves should be cut down to the bare minimum. It makes it easier to understand what is being tested.
For example, no need for a compute shader with InterlockedAdd. A simple pixel shader that just reads from the buffer and returns the value would be sufficient.
| } | ||
|
|
||
| TEST_F(ValidationTest, EmptyStructInBuffer) { | ||
| TestCheck(L"..\\CodeGenHLSL\\staticGlobals.hlsl"); |
There was a problem hiding this comment.
This looks like a copy-paste error. Should probably point to the EmptyStructInBuffer test.
| } | ||
|
|
||
| TEST_F(ValidationTest, BigStructInBuffer) { | ||
| TestCheck(L"..\\CodeGenHLSL\\staticGlobals.hlsl"); |
There was a problem hiding this comment.
Looks like a copy-paste error again.
|
|
||
| groupshared Foo sharedData; | ||
|
|
||
| #ifdef DX12 |
There was a problem hiding this comment.
Kill or use the root signature.
| Buffer<Foo> inputs : register(t1); | ||
|
|
||
| struct Empty {}; | ||
| Buffer<Empty> eb; |
There was a problem hiding this comment.
Let's just keep the big struct in this test.
|
|
||
| // CHECK: object's templated type must have at least one element | ||
|
|
||
| struct Foo { |
There was a problem hiding this comment.
Let's just keep the empty struct in this test.
* Add type punning rules to vk::BufferPointer Fixes microsoft#43 * Clarify that type punning with buffer pointers leads to undefined behavior.
No description provided.