diff options
| author | Matthew Moulton <30711895+mmoult@users.noreply.github.com> | 2024-06-07 10:47:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 08:47:17 -0700 |
| commit | 78d34f3b3cec6222f87fc69eddfe66f3fc91b1cf (patch) | |
| tree | 3e3b2596e401c722de7c84b1e35a923d2051d0a7 /examples/gpu-printing | |
| parent | 7c6faf62158eed309f01bbef8a7b88e0c36459c7 (diff) | |
Improve documentation and example formatting consistency (#4299)
* Improve doc and example consistency
Improve consistency of formatting in example shaders and remove
trailing spaces in documentation files. Fix minor typos.
Diffstat (limited to 'examples/gpu-printing')
| -rw-r--r-- | examples/gpu-printing/printing.slang | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/gpu-printing/printing.slang b/examples/gpu-printing/printing.slang index 0abf57e34..dc1ea3d5f 100644 --- a/examples/gpu-printing/printing.slang +++ b/examples/gpu-printing/printing.slang @@ -55,7 +55,8 @@ enum PrintingOp // // The core allocation operation here is `_allocatePrintWords()` - // Allocate space for one or more print commands. +// Allocate space for one or more print commands. +// uint _allocatePrintWords(uint wordCount) { // We allocate the required number of words with an atomic, and @@ -214,12 +215,12 @@ extension String : IPrintable // to scale up to a two-argument `println()` function that can // work for any combination of printable types. - // Print two values, `a` and `b`. - // - // This function ensures that the values of `a` and `b` - // are written out atomically, without values printed - // from other threads spliced in between. - // +// Print two values, `a` and `b`. +// +// This function ensures that the values of `a` and `b` +// are written out atomically, without values printed +// from other threads spliced in between. +// void println<A : IPrintable, B : IPrintable>(A a, B b) { // To print two values atomically, we must first |
