feat(shader): Update shader handling to support multiple shader keys across various components

This commit is contained in:
2026-01-07 12:27:20 +00:00
parent fbacb18f2e
commit 22f9a98ee1
13 changed files with 114 additions and 51 deletions

View File

@@ -78,7 +78,10 @@ int main() {
const auto& object = objects.front();
Assert(object.vertices.size() == 3, "scene object should yield three vertices", failures);
Assert(object.indices.size() == 3, "scene object should yield three indices", failures);
Assert(object.shaderKey == "test", "shader key should match fixture", failures);
Assert(object.shaderKeys.size() == 1, "shader keys should contain one entry", failures);
if (!object.shaderKeys.empty()) {
Assert(object.shaderKeys.front() == "test", "shader key should match fixture", failures);
}
const std::vector<uint16_t> expectedIndices{0, 1, 2};
Assert(object.indices == expectedIndices, "indices should be zero-based", failures);
Assert(object.computeModelMatrixRef >= 0,