diff options
| author | Yong He <yonghe@outlook.com> | 2023-02-27 15:18:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 15:18:07 -0800 |
| commit | a3ba22b51c371d5a20d61aa4e35233ba4f4f68db (patch) | |
| tree | 704f8e9575fdd888d01137054b4c3887aaac9360 /tests/bindings/multiple-parameter-blocks.slang | |
| parent | b1b76f06ca5bdfc4b688d99095dfb7d561a04d80 (diff) | |
Detect and deduplicate read-only resource access. (#2680)
* Detect and deduplicate read-only resource access.
* Fix tests.
* Fix tests.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/bindings/multiple-parameter-blocks.slang')
| -rw-r--r-- | tests/bindings/multiple-parameter-blocks.slang | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/bindings/multiple-parameter-blocks.slang b/tests/bindings/multiple-parameter-blocks.slang index 29eea6766..0f247319d 100644 --- a/tests/bindings/multiple-parameter-blocks.slang +++ b/tests/bindings/multiple-parameter-blocks.slang @@ -39,10 +39,11 @@ SamplerState p1_s_0 : register(s0, space1); float4 main(float v : V) : SV_TARGET { - return use(p_t_0, p_s_0) - + use(p_ta_0[int(v)], p_s_0) - + use(p1_t_0, p1_s_0) - + use(p1_ta_0[int(v)], p1_s_0); + int _S2 = int(v); + return use(p_t_0, p_s_0) + + use(p_ta_0[_S2], p_s_0) + + use(p1_t_0, p1_s_0) + + use(p1_ta_0[_S2], p1_s_0); } #endif |
