Adding texture views are first class primitives

This commit is contained in:
2025-07-04 17:36:40 +02:00
parent 85f88d79bd
commit b2cb8b42e4
26 changed files with 233 additions and 103 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void Material::updateDescriptor() {
set = layout->allocateDescriptorSet();
for (uint32 i = 0; i < textures.size(); ++i) {
if (textures[i] != nullptr) {
set->updateTexture("textures", i, textures[i]);
set->updateTexture("textures", i, textures[i]->getDefaultView());
}
}
for (uint32 i = 0; i < samplers.size(); ++i) {