summaryrefslogtreecommitdiffstats
path: root/docs/cpu-target.md
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-07-19 15:25:27 -0400
committerGitHub <noreply@github.com>2022-07-19 15:25:27 -0400
commitd118134df5ae76fcc26626e771f4ca03a2fb43f1 (patch)
tree17157d3b5d06e23e3e15d9150b27e055f88ebdd2 /docs/cpu-target.md
parent798db8d2bef31355c8aba5ba926556b4a297bc5f (diff)
Typo fixes in cpu-target.md. (#2333)
* #include an absolute path didn't work - because paths were taken to always be relative. * Small improvements to cpu-target documentation. * More improvements to cpu-target.md doc. * More CPU target doc improvements. * More improvements around cpu-target.md * More fixes and improvements. * Added test for behavior of actual global and reflection. * Add category to determine cpu word size, so that reflection tests can target width. * Fix some typos in cpu-target.md
Diffstat (limited to 'docs/cpu-target.md')
-rw-r--r--docs/cpu-target.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cpu-target.md b/docs/cpu-target.md
index 45cac6a3f..76226a2b8 100644
--- a/docs/cpu-target.md
+++ b/docs/cpu-target.md
@@ -88,7 +88,7 @@ There are currently two styles of *compilation style* supported - `host` and `sh
The `shader` style implies
-* The code *can* be executed in a GPU-kernel like execution model, launched across multiple threads (as desribed in the [ABI](#abi))
+* The code *can* be executed in a GPU-kernel like execution model, launched across multiple threads (as described in the [ABI](#abi))
* Currently no reference counting
* Only functionality from the Slang stdlib, built in HLSL or anything supplied by a [COM interfaces](#com-interface) is available
* Currently [slang-llvm](#slang-llvm) only supports the `shader` style
@@ -96,7 +96,7 @@ The `shader` style implies
The `host` style implies
* Execution style is akin to more regular CPU scalar code
-* Typically requires linking with `slang-rt` and use `slang-rt` types such as `Slang::String`
+* Typically requires linking with `slang-rt` and use of `slang-rt` types such as `Slang::String`
* Allows use of `new`
* Allows the use of `class` for reference counted types
* COM interfaces are reference counted
@@ -526,7 +526,7 @@ If application code assumed `myFunc` could be called with no parameters a crash
If a global is desired in a function that wants to be called from the application, the [`__global`](#actual-global) modifier can be used.
-## <a id="prelude"/a>Prelude
+## <a id="prelude"/>Prelude
For C++ targets, there is code to support the Slang generated source defined within the 'prelude'. The prelude is inserted text placed before the Slang generated C++ source. For the Slang command line tools as well as the test infrastructure, the prelude functionality is achieved through a `#include` in the prelude text of the `prelude/slang-cpp-prelude.h` specified with an absolute path. Doing so means other files the `slang-cpp-prelude.h` might need can be specified relatively, and include paths for the backend C/C++ compiler do not need to be modified.