summaryrefslogtreecommitdiff
path: root/examples/autodiff-texture/reconstruct.slang
diff options
context:
space:
mode:
authorMatthew Moulton <30711895+mmoult@users.noreply.github.com>2024-06-07 10:47:17 -0500
committerGitHub <noreply@github.com>2024-06-07 08:47:17 -0700
commit78d34f3b3cec6222f87fc69eddfe66f3fc91b1cf (patch)
tree3e3b2596e401c722de7c84b1e35a923d2051d0a7 /examples/autodiff-texture/reconstruct.slang
parent7c6faf62158eed309f01bbef8a7b88e0c36459c7 (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/autodiff-texture/reconstruct.slang')
-rw-r--r--examples/autodiff-texture/reconstruct.slang4
1 files changed, 2 insertions, 2 deletions
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;