diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-26 12:04:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-26 12:04:54 -0700 |
| commit | 3f316dcbd9274efc74f817cf36f17a511ff2e21e (patch) | |
| tree | 185210d30a7887df823bb0c6d817d3feb2ebe675 /tests/reflection/reflect-imported-code.hlsl | |
| parent | d506737b8b00bcc89adf937994ceb6df4509c98a (diff) | |
| parent | 07f9b9ec7c9be6a0eff65ef327d2a0fee262aed7 (diff) | |
Merge pull request #42 from tfoleyNV/reflect-imported
Reflect imported code
Diffstat (limited to 'tests/reflection/reflect-imported-code.hlsl')
| -rw-r--r-- | tests/reflection/reflect-imported-code.hlsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/reflection/reflect-imported-code.hlsl b/tests/reflection/reflect-imported-code.hlsl new file mode 100644 index 000000000..b95493f7e --- /dev/null +++ b/tests/reflection/reflect-imported-code.hlsl @@ -0,0 +1,21 @@ +//TEST:SIMPLE:-profile ps_4_0 -target reflection-json + +// Confirm that shader parameters in imported modules get reflected properly. + +__import reflect_imported_code; + +Texture2D t; +SamplerState s; + +cbuffer C +{ + float c; +} + +float4 main() : SV_Target +{ + return use(t,s_i) + + use(c) + + use(t_i, s) + + use(c_i); +}
\ No newline at end of file |
