test: Update RHI unit tests to use CreateShader API

Rename CompileShader to CreateShader in all RHI unit tests:
- test_command_list.cpp
- test_compute.cpp
- test_shader.cpp
This commit is contained in:
2026-03-25 19:01:59 +08:00
parent 81532983f0
commit 6bbd35873b
3 changed files with 25 additions and 25 deletions

View File

@@ -435,7 +435,7 @@ TEST_P(RHITestFixture, CommandList_SetShader) {
shaderDesc.source.assign(vs, vs + strlen(vs));
}
RHIShader* shader = GetDevice()->CompileShader(shaderDesc);
RHIShader* shader = GetDevice()->CreateShader(shaderDesc);
if (shader == nullptr) {
return;
}