summaryrefslogtreecommitdiff
path: root/docs/user-guide/05-capabilities.md
diff options
context:
space:
mode:
authorcheneym2 <acheney@nvidia.com>2024-04-16 22:02:45 -0400
committerGitHub <noreply@github.com>2024-04-16 19:02:45 -0700
commit67313584d6879d68db53ced3108c2370bed5e8c1 (patch)
tree202f64210053d12a8ca2c6a2a22b000c020443eb /docs/user-guide/05-capabilities.md
parent282da4ac94d60d3244f4d72085e66fb82cf5abd8 (diff)
Fix Slang documentation typos (#3961)
Diffstat (limited to 'docs/user-guide/05-capabilities.md')
-rw-r--r--docs/user-guide/05-capabilities.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/user-guide/05-capabilities.md b/docs/user-guide/05-capabilities.md
index 5f69a3026..8f377f5a4 100644
--- a/docs/user-guide/05-capabilities.md
+++ b/docs/user-guide/05-capabilities.md
@@ -27,7 +27,7 @@ a `discard` statement, it shall be a type-check error.
Slang models code generation targets, shader stages, API extensions and hardware features as distinct capability atoms. For example, `GLSL_460` is a capability atom that stands for the GLSL 460 code generation target,
`compute` is an atom that represents the compute shader stage, `_sm_6_7` is an atom representing the shader model 6.7 feature set in D3D, `SPV_KHR_ray_tracing` is an atom representing the `SPV_KHR_ray_tracing` SPIR-V extension, and `spvShaderClockKHR` is an atom for the `ShaderClockKHR` SPIRV capability. For a complete list of capabilities supported by the Slang compiler, check the [capability definition file](https://github.com/shader-slang/slang/blob/master/source/slang/slang-capabilities.capdef).
-A capabiltiy **requirement** can be a single capability atom, a conjunction of capability atoms, or a disjunction of conjunction of capability atoms. A function can declare its
+A capability **requirement** can be a single capability atom, a conjunction of capability atoms, or a disjunction of conjunction of capability atoms. A function can declare its
capability requirement with the following syntax:
```csharp
@@ -94,7 +94,7 @@ public void myFunc()
## Inferrence of Capability Requirements
-By default, Slang will infer the capability requirements of a function given its definition, as long as the function has `internal` or `private` visibilty. For example, given:
+By default, Slang will infer the capability requirements of a function given its definition, as long as the function has `internal` or `private` visibility. For example, given:
```csharp
void myFunc()
{
@@ -112,7 +112,7 @@ Since `discard` statement requires capability `fragment`.
## Inferrence on target_switch
-A `__target_switch` statement will introduce disjunctions in its inferred capabiltiy requirement. For example:
+A `__target_switch` statement will introduce disjunctions in its inferred capability requirement. For example:
```csharp
void myFunc()
{