Procedural GSplat Container API#8352
Merged
Merged
Conversation
3 tasks
added 2 commits
January 12, 2026 12:38
slimbuck
approved these changes
Jan 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for procedural Gaussian Splat generation through a new
GSplatContainerclass andGSplatFormatdescriptor.The
GSplatFormatclass allows defining custom texture layouts with arbitrary streams, while automatically generating the necessary shader code to read the data. TheGSplatContainerholds the allocated textures and integrates seamlessly with the unified rendering pipeline, supporting multiple instances of the same container with per-instance parameters.New Public API
GSplatFormat
Defines custom texture layouts for splat data with automatic shader code generation:
streams- Array of texture stream definitions (name, format)readGLSL/readWGSL- Custom shader code for reading splat datagetDeclarations()/getReadCode()- Generated shader chunksExample - defines a single texture, a single uniform and code to generate splat data used for rendering (only showing GLSL
GSplatContainer
Container for procedural splat data extending
GSplatResourceBase:(device, numSplats, format)numSplats- Readonly count of splatsgetTexture(name)- Get texture by stream namecenters- Float32Array for sorting (inherited from base)aabb- BoundingBox for culling (inherited from base)Example
GSplatComponent.setParameter / getParameter / deleteParameter
Per-instance shader parameters. This is the same API
Materialclass has for setting up uniforms.Example: