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

◆ buffer_capacity()

uint32_t MayaFlux::Buffers::VertexFieldProcessor::buffer_capacity ( const std::shared_ptr< VKBuffer > &  buffer) const
private

Records the buffer can hold at the operator's stride.

Definition at line 117 of file VertexFieldProcessor.cpp.

119{
120 const uint32_t stride_bytes = m_params.stride_words * 4;
121 if (stride_bytes == 0)
122 return 0;
123
124 return static_cast<uint32_t>(buffer->get_size_bytes() / stride_bytes);
125}

References m_params, and MayaFlux::Buffers::VertexFieldProcessor::RangeParams::stride_words.

Referenced by on_before_execute().

+ Here is the caller graph for this function: