diff options
| author | Yong He <yonghe@outlook.com> | 2019-01-27 00:08:17 -0800 |
|---|---|---|
| committer | Yong He <yonghe@google.com> | 2019-01-28 10:50:05 -0800 |
| commit | 9812963c52eb6312546f600804bb642a38dcfe64 (patch) | |
| tree | 589be4c5b1f9e74da86caa6bd5be6a4f13083b15 /tests/cross-compile/glsl-empty-struct-param-field.slang | |
| parent | f2579a60a3de45d5f48f1e1433ba736647988e8e (diff) | |
Fix type legalization to correctly handle empty struct fields.
Diffstat (limited to 'tests/cross-compile/glsl-empty-struct-param-field.slang')
| -rw-r--r-- | tests/cross-compile/glsl-empty-struct-param-field.slang | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/cross-compile/glsl-empty-struct-param-field.slang b/tests/cross-compile/glsl-empty-struct-param-field.slang new file mode 100644 index 000000000..21b67e325 --- /dev/null +++ b/tests/cross-compile/glsl-empty-struct-param-field.slang @@ -0,0 +1,17 @@ +//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -profile ps_5_0 + +struct E +{ +}; + +struct P +{ + E em; + float4 param; +}; +ParameterBlock<P> pblock; + +float4 main(float4 pos : SV_POSITION) +{ + return pblock.param; +}
\ No newline at end of file |
