diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-23 10:31:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 10:31:05 -0800 |
| commit | 51ad07d1fbffd41c758eba172aa77ebba3204924 (patch) | |
| tree | fadd788714c4ad37830846b0274d56b5ae1eff56 /tests | |
| parent | 0101e5ab59a1678ed7212913c3880edfaf039537 (diff) | |
Improve performance when compiling small shaders. (#6396)
Improve performance when compiling small shaders.
Avoid copying witness table entries that are not getting used during linking.
Avoid copying auto-diff related decorations and derivative functions during linking, if the user modules doesn't use autodiff.
Cache operator overload resolution results on global session, so each new Session doesn't need to repetitively run through overload resolution from scratch.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/language-feature/static_assert.slang | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/language-feature/static_assert.slang b/tests/language-feature/static_assert.slang index 55bfa0abb..d7806cf30 100644 --- a/tests/language-feature/static_assert.slang +++ b/tests/language-feature/static_assert.slang @@ -1,6 +1,4 @@ //TEST:SIMPLE(filecheck=CHK):-target hlsl -stage compute -entry computeMain -//TEST:SIMPLE(filecheck=CHK):-target glsl -stage compute -entry computeMain -//TEST:SIMPLE(filecheck=CHK):-target spirv -stage compute -entry computeMain //TEST:SIMPLE(filecheck=HLSL):-target hlsl -stage compute -entry computeMain //TEST:SIMPLE(filecheck=GLSL):-target glsl -stage compute -entry computeMain //TEST:SIMPLE(filecheck=SPV):-target spirv -stage compute -entry computeMain @@ -56,14 +54,12 @@ extension MyType<T> [numthreads(1,1,1)] void computeMain(int3 dispatchThreadID: SV_DispatchThreadID) { - //CHK-NOT:error {{.*}} TEST_specialize - //CHK: error {{.*}} TEST_specialize T_is_int - //CHK-NOT:error {{.*}} TEST_specialize + // CHK-DAG: error {{.*}} TEST_specialize T_is_int + // CHK-DAG:{{.*}} TEST_specialize<float> TEST_specialize<float>(); - //CHK-NOT:error {{.*}} TEST_specialize - //CHK: error 41400: {{.*}} TEST_specialize T_is_float - //CHK-NOT:error {{.*}} TEST_specialize + // CHK-DAG: error {{.*}} TEST_specialize T_is_float + // CHK-DAG:{{.*}} TEST_specialize<int> TEST_specialize<int>(); //HLSL: error {{.*}} TEST_target_switch all |
