-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create scope for synthesized property decl. (#5817)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
- Loading branch information
1 parent
89bf795
commit 8bf4743
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK):-output-using-type | ||
|
||
public interface ITest { | ||
property int value; | ||
}; | ||
|
||
struct Test : ITest { | ||
int value; | ||
}; | ||
|
||
//TEST_INPUT: type_conformance Test:ITest = 1; | ||
|
||
//TEST_INPUT: set inputBuffer = ubuffer(data=[0 0 1 0 1 0 0 0], stride=4) | ||
RWStructuredBuffer<ITest> inputBuffer; | ||
|
||
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer | ||
RWStructuredBuffer<int> outputBuffer; | ||
|
||
[NumThreads(1, 1, 1)] | ||
void computeMain() | ||
{ | ||
// CHECK: 1 | ||
outputBuffer[0] = inputBuffer[0].value; | ||
} |