Skip to content

Wire GPU terrain generation into renderer#149

Merged
stainlu merged 1 commit intomainfrom
worktree-agent-ae829b0a
Apr 8, 2026
Merged

Wire GPU terrain generation into renderer#149
stainlu merged 1 commit intomainfrom
worktree-agent-ae829b0a

Conversation

@stainlu
Copy link
Copy Markdown
Owner

@stainlu stainlu commented Apr 8, 2026

Summary

  • Adds Renderer::register_gpu_mesh() to accept pre-built GPU vertex/index buffers as renderable meshes
  • Adds GpuTerrainGenerator::generate_chunk() wrapper that allocates output buffers with correct usage flags and dispatches compute
  • Re-exports GpuTerrainGenerator and TerrainGenParams under the gpu-terrain feature
  • New gpu_terrain_demo example: procedural heightmap → chunk subdivision → GPU compute dispatch → rendered terrain

Test plan

  • cargo check --workspace clean
  • cargo clippy --workspace -- -D warnings clean
  • cargo fmt --all -- --check clean
  • Existing terrain tests pass

🤖 Generated with Claude Code

Integrates the existing GpuTerrainGenerator compute pipeline into the
rendering system so terrain chunks can be generated entirely on the GPU.

- Add Renderer::register_gpu_mesh() to accept pre-built GPU buffers
- Add GpuTerrainGenerator::generate_chunk() high-level wrapper
- Re-export GPU terrain types under the gpu-terrain feature gate
- Add gpu_terrain_demo example demonstrating full pipeline:
  heightmap → chunks → GPU compute dispatch → render

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying euca-engine with  Cloudflare Pages  Cloudflare Pages

Latest commit: c33964b
Status: ✅  Deploy successful!
Preview URL: https://97b118ae.euca-engine.pages.dev
Branch Preview URL: https://worktree-agent-ae829b0a.euca-engine.pages.dev

View logs

@stainlu stainlu merged commit bac42f2 into main Apr 8, 2026
5 of 8 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