Skip to content

feat(lambda-rs): Add support for textures - #69

Merged
vmarcella merged 29 commits into
mainfrom
vmarcella/textures
Nov 11, 2025
Merged

feat(lambda-rs): Add support for textures#69
vmarcella merged 29 commits into
mainfrom
vmarcella/textures

Conversation

@vmarcella

Copy link
Copy Markdown
Member

No description provided.

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive texture and sampler support to the lambda-rs rendering engine. It introduces 2D and 3D texture creation, sampling configuration, and depth testing capabilities, along with tutorial documentation and working examples.

  • Implements platform-level texture and sampler builders with proper padding and validation
  • Adds high-level API wrappers for textures, samplers, and depth attachments
  • Extends bind group system to support texture and sampler bindings
  • Provides depth buffer support with configurable clear operations

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
docs/tutorials/uniform-buffers.mdAdds conclusion section and updates metadata; contains duplicate last_updated field
docs/tutorials/textured-quad.mdNew tutorial demonstrating 2D texture sampling with a quad
docs/tutorials/textured-cube.mdNew tutorial showing 3D transforms with textured cube rendering
docs/tutorials/README.mdUpdates index with links to new texture tutorials
docs/specs/textures-and-samplers.mdTechnical specification for texture/sampler API; contains list marker typo
crates/lambda-rs/tests/runnables.rsRemoves empty test file
crates/lambda-rs/src/render/texture.rsNew high-level texture and sampler API module
crates/lambda-rs/src/render/render_pass.rsAdds depth attachment operations and configuration
crates/lambda-rs/src/render/pipeline.rsAdds depth testing support to render pipelines
crates/lambda-rs/src/render/mod.rsIntegrates depth texture management into render context
crates/lambda-rs/src/render/bind.rsExtends bind groups to support texture and sampler bindings
crates/lambda-rs/examples/textured_quad.rsWorking example of 2D texture sampling
crates/lambda-rs/examples/textured_cube.rsWorking example of 3D textured rendering with depth
crates/lambda-rs-platform/tests/*.rsIntegration tests for texture upload and binding
crates/lambda-rs-platform/src/wgpu/texture.rsPlatform-level texture implementation with padding logic
crates/lambda-rs-platform/src/wgpu/render_pass.rsAdds depth attachment support; contains redundant cast
crates/lambda-rs-platform/src/wgpu/pipeline.rsAdds depth/stencil state configuration
crates/lambda-rs-platform/src/wgpu/mod.rsExports new texture module
crates/lambda-rs-platform/src/wgpu/bind.rsImplements texture and sampler binding at platform level

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threaddocs/tutorials/uniform-buffers.md Outdated
Comment threaddocs/specs/textures-and-samplers.md Outdated
Comment threadcrates/lambda-rs-platform/src/wgpu/render_pass.rs Outdated

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadcrates/lambda-rs/src/render/texture.rs
Comment threadcrates/lambda-rs/src/render/texture.rs
@vmarcella
vmarcella merged commit 288633a into mainNov 11, 2025
4 checks passed
@vmarcella
vmarcella deleted the vmarcella/textures branch November 11, 2025 00:35
Sign up for freeto 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.

2 participants

@vmarcella