10 halp_meta(name,
"Extract buffer")
11 halp_meta(category,
"Visuals/Utilities")
12 halp_meta(c_name,
"extract_attribute")
13 halp_meta(description,
"Extract a selected vertex attribute from geometry into a GPU buffer.")
14 halp_meta(manual_url,
"https://ossia.io/score-docs/processes/extract-buffer.html")
15 halp_meta(uuid,
"207ab744-1f3e-4e72-9a77-db6017cf3dd5")
53 halp_meta(name,
"Geometry");
54 halp::dynamic_gpu_geometry
mesh;
55 float transform[16]{};
56 bool dirty_mesh =
false;
57 bool dirty_transform =
false;
60 halp::combobox_t<
"Attribute", Attribute> attribute;
61 halp::toggle<
"Pad vec3 to vec4"> pad_to_vec4;
66 halp::gpu_buffer_output<
"Buffer"> buffer;
79 void runInitialPasses(
86 [[nodiscard]]
static halp::attribute_semantic
87 toAttributeLocation(Attribute attr)
noexcept;
88 void releaseStrategy();
91 ExtractionStrategyVariant m_strategy;
92 Attribute m_currentAttribute{Position};
93 ossia::geometry::gpu_buffer m_currentBuffer{};
94 bool m_currentPadToVec4{
false};