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

◆ NetworkTextureBuffer()

MayaFlux::Buffers::NetworkTextureBuffer::NetworkTextureBuffer ( std::shared_ptr< Nodes::Network::NodeNetwork network,
std::shared_ptr< Core::VKImage texture = nullptr,
const std::string &  binding_name = "network_texture_geometry",
float  over_allocate_factor = 2.0F 
)
explicit

Create buffer from network with optional texture source.

Parameters
networkNodeNetwork providing geometry each frame
textureOptional VKImage sampled in the UV compute pass
binding_nameLogical name for the geometry binding
over_allocate_factorBuffer size multiplier for dynamic growth

Definition at line 8 of file NetworkTextureBuffer.cpp.

13 : NetworkGeometryBuffer(std::move(network), binding_name, over_allocate_factor)
14{
15 m_uv_processor = std::make_shared<UVFieldProcessor>();
16
17 if (texture)
18 m_uv_processor->set_texture(std::move(texture));
19}
NetworkGeometryBuffer(std::shared_ptr< Nodes::Network::NodeNetwork > network, const std::string &binding_name="network_geometry", float over_allocate_factor=2.0F)
Create geometry buffer from network.
std::shared_ptr< UVFieldProcessor > m_uv_processor

References m_uv_processor.