Skip to content

Commit

Permalink
Feature/wgsl intrinsic texture gather (#5141)
Browse files Browse the repository at this point in the history
This PR implements the texture gather functions for WGSL.

The pattern was very similar to how Metal was implemented.
Before copy and paste from the Metal implementation, I had to
clean up the Metal implementation to make it more readable
and maintainable.

Gather functions are available only for 2D and 3D textures.
Their `array` and `depth` variants may or may not be supported depending on the target.
`static_assert` ensures that Gather functions are available only for 2D and 3D textures.

Removed incorrect use of "$p" argument for targeting GLSL.
  • Loading branch information
jkwak-work authored Sep 24, 2024
1 parent 3e950e1 commit ef3552d
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 192 deletions.
Loading

0 comments on commit ef3552d

Please sign in to comment.