diff options
Diffstat (limited to 'tests/compute')
| -rw-r--r-- | tests/compute/global-type-param1.slang | 7 | ||||
| -rw-r--r-- | tests/compute/global-type-param2.slang | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/compute/global-type-param1.slang b/tests/compute/global-type-param1.slang index 08e548b81..e16ffa9da 100644 --- a/tests/compute/global-type-param1.slang +++ b/tests/compute/global-type-param1.slang @@ -28,9 +28,12 @@ struct Impl : IBase __generic_param TImpl : IBase; -TImpl impl; +ParameterBlock<TImpl> impl; -float base0; // = 0.5 +cbuffer C +{ + float base0; // = 0.5 +} Texture2D tex1; // = 0.0 SamplerState sampler; diff --git a/tests/compute/global-type-param2.slang b/tests/compute/global-type-param2.slang index 51b586cf7..f29d01407 100644 --- a/tests/compute/global-type-param2.slang +++ b/tests/compute/global-type-param2.slang @@ -40,7 +40,7 @@ struct Impl : IBase __generic_param TImpl : IBase; -TImpl impl; +ParameterBlock<TImpl> impl; // at binding c0: cbuffer existingBuffer |
