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

◆ TextureNode()

MayaFlux::Nodes::GpuSync::TextureNode::TextureNode ( uint32_t  width,
uint32_t  height 
)

Definition at line 7 of file TextureNode.cpp.

8 : m_width(width)
9 , m_height(height)
10 , m_pixel_buffer(static_cast<size_t>(width) * static_cast<size_t>(height) * 4)
11{
12 if (width == 0 || height == 0) {
13 error<std::invalid_argument>(
16 std::source_location::current(),
17 "Cannot create TextureNode with zero dimensions ({} x {})",
18 width, height);
19 }
20
21 m_pixel_data_dirty = true;
22
24 "Created TextureNode {}x{}", width, height);
25}
#define MF_DEBUG(comp, ctx,...)
bool m_pixel_data_dirty
Flag: pixel data changed since last GPU upload.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_pixel_data_dirty, MF_DEBUG, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.