mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
feat(shader): Update shader handling to support multiple shader keys across various components
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user