Skip to content

Commit

Permalink
add link to texture management
Browse files Browse the repository at this point in the history
  • Loading branch information
parbenc committed Aug 5, 2024
1 parent 3ea165e commit e65080a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ tradeoffs
templated
typedefs
UMM
upscaled
variadic
WinGDB
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
2 changes: 1 addition & 1 deletion docs/understand/texture_fetching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Texture Fetching
*******************************************************************************

Textures are more than just a buffer, that is interpreted as 1D, 2D or 3D array. Because of its legacy as a graphics functionality, textures are indexed with floats. This can happen two different ways, either the index will be in the range of [0..size-1] or in [0..1]. The difference is mathematically just a division, so for the explanations on this page, we'll use the [0..size-1] indices.
`Textures <https://rocm.docs.amd.com/projects/HIP/en/latest/doxygen/html/group___texture.html>`_ are more than just a buffer, that is interpreted as 1D, 2D or 3D array. Because of its legacy as a graphics functionality, textures are indexed with floats. This can happen two different ways, either the index will be in the range of [0..size-1] or in [0..1]. The difference is mathematically just a division, so for the explanations on this page, we'll use the [0..size-1] indices.

Using float indices isn't trivial. You as a developer, have to decide what happens, when the index is a fraction. There is no rule for how to choose between filtering methods, as it is very dependent of the application.

Expand Down

0 comments on commit e65080a

Please sign in to comment.