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

◆ is_in_place_operation()

bool MayaFlux::Buffers::ShaderProcessor::is_in_place_operation ( const std::string &  descriptor_name) const
virtual

Check if shader modifies a specific buffer in-place.

Parameters
descriptor_nameBinding name
Returns
True if shader both reads and writes this buffer

Definition at line 304 of file ShaderProcessor.cpp.

305{
306 auto hint = get_buffer_usage_hint(descriptor_name);
307 return hint == BufferUsageHint::BIDIRECTIONAL;
308}
virtual BufferUsageHint get_buffer_usage_hint(const std::string &descriptor_name) const
Get buffer usage hint for a descriptor.

References BIDIRECTIONAL, and get_buffer_usage_hint().

+ Here is the call graph for this function: