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

◆ stage_passthrough()

void MayaFlux::Yantra::GpuDispatchCore::stage_passthrough ( size_t  binding_index,
const void *  data,
size_t  byte_size 
)
protected

Stage raw bytes for a PASSTHROUGH binding before dispatch.

Parameters
binding_indexIndex matching declare_buffer_bindings order.
dataRaw byte pointer.
byte_sizeSize in bytes.

Definition at line 58 of file GpuDispatchCore.cpp.

59{
60 if (binding_index >= m_passthrough_bytes.size())
61 m_passthrough_bytes.resize(binding_index + 1);
62 auto& slot = m_passthrough_bytes[binding_index];
63 slot.resize(byte_size);
64 std::memcpy(slot.data(), data, byte_size);
65}
std::vector< std::vector< uint8_t > > m_passthrough_bytes

References m_passthrough_bytes.