/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
mSamplers[index] = sampler;
+
+ if(index < static_cast<uint32_t>(mTextures.Size()))
+ {
+ mTextures[index]->SetUpdated(true);
+ }
}
void TextureSet::SetTexture(uint32_t index, Render::Texture* texture)
if(texture)
{
mHasAlpha |= texture->HasAlphaChannel();
+ texture->SetUpdated(true);
}
}
return mHasAlpha;
}
+uint32_t TextureSet::GetMemoryPoolCapacity()
+{
+ return gTextureSetMemoryPool.GetCapacity();
+}
+
} // namespace SceneGraph
} // namespace Internal