diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-05-15 11:22:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 11:22:14 -0400 |
| commit | bfe75618be81566882be8570b8db82ad5a2f8fe4 (patch) | |
| tree | 1a319bee77f8faa4c09f385287d2dffdc569499e /prelude | |
| parent | 1027225ac7ec8da0e471b633f358333c8a95b010 (diff) | |
Surface access on CUDA is byte addressed in X (#1841)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Fix for writing to RWTexture with half types on CUDA.
* CUDA half functionality doc updates.
* First pass support for sust.p RWTexture format conversion on write.
* Tidy up implementation of $C.
Made clamping mode #define able.
* A simple test for RWTexture CUDA format conversion.
* Use $E to fix byte addressing in X in CUDA.
* Do not scale when accessing via _convert versions of surface functions.
Diffstat (limited to 'prelude')
| -rw-r--r-- | prelude/slang-cuda-prelude.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/prelude/slang-cuda-prelude.h b/prelude/slang-cuda-prelude.h index a439d274a..a18da027b 100644 --- a/prelude/slang-cuda-prelude.h +++ b/prelude/slang-cuda-prelude.h @@ -385,6 +385,9 @@ SLANG_SURFACE_WRITE(surfCubemapLayeredwrite, (int x, int y, int layerFace), (x, // Support for doing format conversion when writing to a surface/RWTexture +// NOTE! For normal surface access x values are *byte* addressed. +// For the _convert versions they are *not*. They don't need to be because sust.p does not require it. + template <typename T> SLANG_FORCE_INLINE SLANG_CUDA_CALL void surf1Dwrite_convert(T, cudaSurfaceObject_t surfObj, int x, cudaSurfaceBoundaryMode boundaryMode); template <typename T> |
