MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_compatible_with()

bool MayaFlux::Buffers::BufferUploadProcessor::is_compatible_with ( std::shared_ptr< Buffer ) const
overridevirtual

Checks if this processor can handle the specified buffer type.

Parameters
bufferBuffer to check compatibility with
Returns
True if the processor can process this buffer type, false otherwise

This method enables dynamic processor validation and selection based on buffer characteristics. Processors can examine the buffer's data type, format, size, and other properties to determine compatibility, enabling robust error handling and automatic processor selection in complex processing pipelines.

Reimplemented from MayaFlux::Buffers::BufferProcessor.

Definition at line 140 of file BufferUploadProcessor.cpp.

141{
142 return std::dynamic_pointer_cast<VKBuffer>(buffer) != nullptr;
143}

Referenced by on_attach().

+ Here is the caller graph for this function: