diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-02-18 12:40:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 12:40:14 -0500 |
| commit | e109985375712b449d365450b3d3e39416a171ce (patch) | |
| tree | 56a2c805368d5afbfa568e514af0704b8ed7346c /docs/cuda-target.md | |
| parent | 2c097545eaa324a91a035327abad2e8b4fa60469 (diff) | |
CUDA/CPU resource coverage (#1224)
* Add cubemap support.
* Add CUDA fence instrinsics.
* Added Gather for CUDA.
* Use the CUDA driver API as much as possible.
* * Support 1D texture on CPU
* WIP on 1D texture on CUDA
* Added simplified texture test
* Fix test.
* Improve texture-simple tests.
* * Add CPU support for 3d textures
* Add support for mip maps to CUDA
* Disable warnings in nvrtc
* Update CUDA docs
* WIP on 3d texture support.
* Add support for 3d textures for CPU and CUDA.
Diffstat (limited to 'docs/cuda-target.md')
| -rw-r--r-- | docs/cuda-target.md | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/docs/cuda-target.md b/docs/cuda-target.md index 9c82b1dc9..79251251b 100644 --- a/docs/cuda-target.md +++ b/docs/cuda-target.md @@ -20,8 +20,7 @@ These limitations apply to Slang transpiling to CUDA. The following are a work in progress or not implmented but are planned to be so in the future -* Barriers/Atomics/Complex resource types -* Preliminary version does maps StructuredBuffers to a pointer - and without boudn checking +* Resource types including surfaces # How it works @@ -137,9 +136,8 @@ For a client application - as long as the requirements of the generated code are That for pass-through usage, prelude is not pre-pended, preludes are for code generation only. */ -virtual SLANG_NO_THROW void SLANG_MCALL setDownstreamCompilerPrelude( -SlangPassThrough passThrough, -const char* preludeText) = 0; + +void setDownstreamCompilerPrelude(SlangPassThrough passThrough, const char* preludeText); ``` The code that sets up the prelude for the test infrastucture and command line usage can be found in ```TestToolUtil::setSessionDefaultPrelude```. Essentially this determines what the absolute path is to `slang-cpp-prelude.h` is and then just makes the prelude `#include "the absolute path"`. @@ -152,5 +150,3 @@ Language aspects Slang follows the HLSL convention that arrays are passed by value. This is in contrast with CUDA where arrays follow C++ conventions and are passed by reference. To make generated CUDA follow this convention an array is turned into a 'FixedArray' struct type. To get something more similar to CUDA/C++ operation the array can be marked in out or inout to make it passed by reference. - - |
