MayaFlux 0.5.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 98 of file GpuDispatchCore.hpp.

99 {
100 if (index >= m_binding_data.size())
101 m_binding_data.resize(index + 1);
102 auto& slot = m_binding_data[index];
103 slot.resize(data.size_bytes());
104 std::memcpy(slot.data(), data.data(), data.size_bytes());
105 }
uint32_t index
Definition VKDevice.cpp:142
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: