Skip to content

GSplat: Centralize texture management with GSplatStreams class#8379

Merged
mvaligursky merged 1 commit into
mainfrom
mv-GSplatStreams
Jan 14, 2026
Merged

GSplat: Centralize texture management with GSplatStreams class#8379
mvaligursky merged 1 commit into
mainfrom
mv-GSplatStreams

Conversation

@mvaligursky

@mvaligursky mvaligursky commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Introduces GSplatStreams class to centralize texture management for GSplat resources, replacing manual texture map handling across resource classes.

Changes

New GSplatStreams Class

  • Manages texture creation, storage, and destruction for GSplat resources
  • Provides textureDimensions (Vec2) for consistent texture sizing
  • Exposes createTexture(), evalTextureSize(), getTexture(), and destroy() methods

Resource Classes Refactored

  • GSplatResourceBase: Now uses GSplatStreams instance instead of manual textures Map
  • GSplatContainer, GSplatResource, GSplatCompressedResource: Use streams.init() for texture creation
  • GSplatSogResource: Manually sets textureDimensions from loaded texture dimensions (SOG textures are externally owned)

Shader Chunks Updated

  • texture sampling now uses injected load function, avoiding manual uniform management

@mvaligursky mvaligursky self-assigned this Jan 14, 2026
@mvaligursky mvaligursky added enhancement Request for a new feature area: graphics Graphics related issue labels Jan 14, 2026
@mvaligursky mvaligursky requested a review from a team January 14, 2026 14:23
@mvaligursky mvaligursky merged commit 3ef871a into main Jan 14, 2026
7 checks passed
@mvaligursky mvaligursky deleted the mv-GSplatStreams branch January 14, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue enhancement Request for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants