Use timestamps for image descriptor updates (#3152)
This commit is contained in:
@@ -436,8 +436,8 @@ bool Drawable::bindDescriptors(CommandEncoder& encoder) const noexcept {
|
||||
for (const auto& texture : textures) {
|
||||
if (!texture) continue;
|
||||
const auto textureImpl = static_cast<const Texture2D*>(texture.get());
|
||||
if (textureImpl->isDirty()) {
|
||||
impl->imageDescriptorSet->markDirty(true);
|
||||
if (textureImpl->isModifiedAfter(impl->imageDescriptorSet->getLastModified())) {
|
||||
impl->imageDescriptorSet->markDirty();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user