Realtime Compositor: Implement Texture node #107291

Merged
Omar Emara merged 1 commits from OmarEmaraDev/blender:cached-texture into main 2023-04-25 09:04:41 +02:00

1 Commits

Author SHA1 Message Date
Omar Emara 74522a1b29 Realtime Compositor: Implement Texture node
This patch implements the Texture node for the realtime compositor. The
evaluation of the texture is not GPU accelerated, but is cached as a
form of temporary implementation since the Texture node is deprecated
and will be removed in the future. Furthermore, texture node evaluation
is not supported for now.

This patch also introduces the concept of an ID static cache, which
uses the DrawDataList mechanism to invalidate the cache as needed,
consequently, a DrawDataList was added to the Tex ID structure.

An improvement that should be implemented outside of this patch is to
implement support for proxy textures in results to avoid redundant
copies in the execute method of the texture node. This should be
straightforward bit will be implemented in a separate patch.
2023-04-24 12:19:15 +02:00