Skip to content

Refactor data texture creation using internal Texture helper#8457

Merged
mvaligursky merged 1 commit intomainfrom
mv-data-texture-helper
Feb 13, 2026
Merged

Refactor data texture creation using internal Texture helper#8457
mvaligursky merged 1 commit intomainfrom
mv-data-texture-helper

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Feb 13, 2026

Summary

  • add internal Texture.createDataTexture2D(graphicsDevice, name, width, height, format, levels) helper for nearest-filtered, clamp-to-edge, no-mipmap 2D data textures
  • replace repeated inline new Texture(...) option blocks with the helper across picker, post-effect queue, gsplat-unified paths, light atlas, depth grab, prepass, and SSAO
  • inline GSplatWorkBuffer._createTexture since it became a direct pass-through to the new helper

Add Texture.createDataTexture2D as an internal API and migrate repeated nearest/clamp/no-mipmap 2D texture creation to this helper, including optional levels upload support.

Co-authored-by: Cursor <cursoragent@cursor.com>
@AlexAPPi
Copy link
Contributor

I would create a separate DataTexture class; I can provide an example. This class would have an API for updating cells/rows and other functionality.

@mvaligursky
Copy link
Contributor Author

I would create a separate DataTexture class; I can provide an example. This class would have an API for updating cells/rows and other functionality.

Hmm, not sure this is something particularly needed for the internal use in the engine?
create an issue with some details for this though.

@mvaligursky mvaligursky merged commit b61d27b into main Feb 13, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-data-texture-helper branch February 13, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants