diff options
Diffstat (limited to 'examples/autodiff-texture/reconstruct.slang')
| -rw-r--r-- | examples/autodiff-texture/reconstruct.slang | 4 |
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; |
