Skip to content

fix(cpuraster): migrate example for ADR-0039 core/nodes namespaces#28

Merged
delta9000 merged 1 commit into
mainfrom
fix/cpuraster-adr0039
Jun 27, 2026
Merged

fix(cpuraster): migrate example for ADR-0039 core/nodes namespaces#28
delta9000 merged 1 commit into
mainfrom
fix/cpuraster-adr0039

Conversation

@delta9000

Copy link
Copy Markdown
Owner

The out-of-SDK CPU rasterizer example predates ADR-0039 and is not covered by mise run ci, so the namespace move (core types → x3d::core, node types → x3d::nodes) silently broke its build:

  • SFImage/SFColor unqualified in cpuraster/Texture.hpp and cpuraster/SceneRender.hpp
  • X3DNode/MFString unqualified in main.cpp

Fix: add the missing using namespace x3d::core; / x3d::nodes; per translation unit. Also fixes a -Wmisleading-indentation -Werror in text_render_test.cpp.

mise run cpuraster now passes (11/11). Unblocks the headless renderer and the demos task. Pure example-side fix; no SDK/runtime changes.

The out-of-SDK CPU rasterizer predates ADR-0039 (last touched at Initial
release) and is not in CI, so the namespace move (core types -> x3d::core,
node types -> x3d::nodes) silently broke its build: SFImage/SFColor in
Texture.hpp/SceneRender.hpp, X3DNode/MFString in main.cpp. Add the missing
'using namespace' directives per translation unit; also fix a -Wmisleading-
indentation -Werror in text_render_test.cpp. mise run cpuraster now passes
(11/11). Unblocks the headless renderer + the demos task.
@delta9000 delta9000 merged commit 1ab5be0 into main Jun 27, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant