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

◆ ProceduralTextureNode() [2/2]

MayaFlux::Nodes::GpuSync::ProceduralTextureNode::ProceduralTextureNode ( uint32_t  width,
uint32_t  height,
PixelGenerator  generator 
)

Create procedural texture with custom generator.

Parameters
widthTexture width
heightTexture height
generatorPixel generation function

Definition at line 16 of file ProceduralTextureNode.cpp.

20 : TextureNode(width, height)
21 , m_generator(std::move(generator))
22{
23 if (!m_generator) {
25 "ProceduralTextureNode created with null generator, using default black");
27 }
28
30 "Created ProceduralTextureNode: {}x{}", width, height);
31}
#define MF_WARN(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
TextureNode(uint32_t width, uint32_t height)
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References MayaFlux::Nodes::GpuSync::default_generator, m_generator, MF_DEBUG, MF_WARN, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.