MayaFlux 0.5.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 59 of file GpuDispatchCore.cpp.

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

References m_passthrough_bytes.