Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::FilterTextureAllocator Class Referenceabstract

Renderer-owned allocation boundary for filter textures. More...

#include "donner/svg/renderer/geode/GeodeFilterEngine.h"

Public Member Functions

virtual gpu::Texture acquireFilterTexture (const gpu::TextureDescriptor &desc)=0
 Takes a filter intermediate matching desc from the renderer's pool, or an invalid texture when the renderer's budget refuses it.
virtual void releaseFilterTextureAtFrameEnd (gpu::Texture texture, const gpu::TextureDescriptor &desc)=0
 Hands texture back once its recorded work is complete in the renderer's command order. It reaches a device-shared pool only after the frame submits; before that, only the same renderer's later recorded work in the frame may reuse it.
virtual void retainTextureWithoutCompletionProof (gpu::Texture texture, const gpu::TextureDescriptor &desc)=0
 Retains a texture whose recorded commands lack completion proof, regardless of its caller.

Detailed Description

Renderer-owned allocation boundary for filter textures.

Filter work is recorded into the renderer's frame command encoder, so a released texture must not reach anything that can run ahead of that frame's submission: another renderer, a queue upload, or destruction. Implementations provide exact-descriptor pooling, and may let the same renderer's later recorded work in the frame reuse a released texture that no queue upload can write, since that work runs after everything already recorded.

Member Function Documentation

◆ acquireFilterTexture()

virtual gpu::Texture donner::geode::FilterTextureAllocator::acquireFilterTexture ( const gpu::TextureDescriptor & desc)
pure virtual

Takes a filter intermediate matching desc from the renderer's pool, or an invalid texture when the renderer's budget refuses it.

Parameters
descDescriptor the intermediate is allocated with.

◆ releaseFilterTextureAtFrameEnd()

virtual void donner::geode::FilterTextureAllocator::releaseFilterTextureAtFrameEnd ( gpu::Texture texture,
const gpu::TextureDescriptor & desc )
pure virtual

Hands texture back once its recorded work is complete in the renderer's command order. It reaches a device-shared pool only after the frame submits; before that, only the same renderer's later recorded work in the frame may reuse it.

Parameters
textureTexture to return; consumed.
descDescriptor texture was acquired with; must match, or the next acquire for that descriptor misses its bucket.

◆ retainTextureWithoutCompletionProof()

virtual void donner::geode::FilterTextureAllocator::retainTextureWithoutCompletionProof ( gpu::Texture texture,
const gpu::TextureDescriptor & desc )
pure virtual

Retains a texture whose recorded commands lack completion proof, regardless of its caller.

The texture must not return to a reusable pool. The allocator keeps its backing alive until the owning device is torn down or another backend-specific completion proof exists.


The documentation for this class was generated from the following file: