Add Fetch and Size methods on samplers and storage textures - #103
Merged
SirLynix merged 4 commits intoSep 17, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #103 +/- ##
==========================================
+ Coverage 76.56% 76.73% +0.16%
==========================================
Files 208 208
Lines 26342 26530 +188
Branches 8090 8036 -54
==========================================
+ Hits 20170 20357 +187
+ Misses 6056 6048 -8
- Partials 116 125 +9
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
ArthurVasseur
force-pushed
the
texel-fetch-size-queries
branch
from
September 17, 2026 13:38
3f4b466 to
3965fea
Compare
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.
This MR adds texel fetching and texture size queries to NZSL, as new methods on samplers and storage textures.
FetchFetch(coords: vecN[i32], lod: i32) -> vec4[T]texelFetchOpImage+OpImageFetch(Lod operand)SizeSize(lod: i32) -> i32 / vecN[i32]textureSizeOpImage+OpImageQuerySizeLodSizeSize() -> i32 / vecN[i32]imageSizeOpImageQuerySizeType returned by
Size:i32for 1D imagesvec2[i32]for 1D arrays, 2D images and cubemapsvec3[i32]for 2D arrays and 3D images