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

◆ set_binding_data() [2/2]

template<typename T >
void MayaFlux::Yantra::GpuDispatchCore::set_binding_data ( size_t  index,
std::span< const T >  data 
)
inline

Pre-stage typed data for a specific binding slot, bypassing the default channel-flattening path in prepare_gpu_inputs.

Template Parameters
TTrivially copyable element type.
Parameters
indexBinding index matching declare_buffer_bindings order.
dataElements to upload.

Definition at line 119 of file GpuDispatchCore.hpp.

120 {
121 if (index >= m_binding_data.size())
122 m_binding_data.resize(index + 1);
123 auto& slot = m_binding_data[index];
124 slot.resize(data.size_bytes());
125 std::memcpy(slot.data(), data.data(), data.size_bytes());
126 }
uint32_t index
Definition VKDevice.cpp:122
std::vector< std::vector< uint8_t > > m_binding_data

References index.

Referenced by MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::in_out(), MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::in_out(), MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::input(), and MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::input().

+ Here is the caller graph for this function: