From 78d34f3b3cec6222f87fc69eddfe66f3fc91b1cf Mon Sep 17 00:00:00 2001 From: Matthew Moulton <30711895+mmoult@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:47:17 -0500 Subject: 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. --- examples/gpu-printing/printing.slang | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'examples/gpu-printing') 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 a, B b) { // To print two values atomically, we must first -- cgit v1.2.3