35 std::shared_ptr<Nodes::GpuSync::TextureNode>
node;
49 void bind_texture_node(
50 const std::string& name,
51 const std::shared_ptr<Nodes::GpuSync::TextureNode>& node,
52 const std::shared_ptr<VKBuffer>& texture);
58 void unbind_texture_node(
const std::string& name);
65 bool has_binding(
const std::string& name)
const {
return m_bindings.contains(name); }
71 std::vector<std::string> get_binding_names()
const;
79 void processing_function(std::shared_ptr<Buffer> buffer)
override;
82 std::unordered_map<std::string, TextureBinding>
m_bindings;
size_t get_binding_count() const
Get number of active bindings.
bool has_binding(const std::string &name) const
Check if a binding exists.
std::unordered_map< std::string, TextureBinding > m_bindings
BufferProcessor that uploads multiple texture nodes to GPU.
std::shared_ptr< VKBuffer > staging_buffer
std::shared_ptr< Nodes::GpuSync::TextureNode > node
std::shared_ptr< VKBuffer > gpu_texture