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/autodiff-texture/reconstruct.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/autodiff-texture/reconstruct.slang') diff --git a/examples/autodiff-texture/reconstruct.slang b/examples/autodiff-texture/reconstruct.slang index c123010e5..8ea033160 100644 --- a/examples/autodiff-texture/reconstruct.slang +++ b/examples/autodiff-texture/reconstruct.slang @@ -28,8 +28,8 @@ void computeMain(uint3 threadIdx : SV_DispatchThreadID) newDstValToAdd = (float3)dstVal.xyz * float3(1.0 / (dstVal.w * 65536.0)); float4 existingVal = 0.0; - - if (dstLayer < layerCount - 1 ) + + if (dstLayer < layerCount - 1) { uint parentOffset = mipOffset[(dstLayer + 1) / 4][(dstLayer + 1) % 4]; uint parentW = dstW / 2; -- cgit v1.2.3