Skip to content

Commit

Permalink
Made code style more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Jul 6, 2024
1 parent 95924f3 commit d329acb
Show file tree
Hide file tree
Showing 37 changed files with 46 additions and 10 deletions.
1 change: 1 addition & 0 deletions shaders/cAbberation.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cAutoExposure.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cMacros.fxh"
#include "shared/cGraphics.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cBilateral.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cConvolution.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cBlending.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cCensusTransform.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cCheckerBoard.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cChromaticity.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cColorSpaces.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cCircles.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cMacros.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cColorBand.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cProcedural.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cColorBlendOp.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
3 changes: 2 additions & 1 deletion shaders/cDiscBlur.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cConvolution.fxh"

Expand Down Expand Up @@ -86,4 +87,4 @@ namespace cDiscBlur
PixelShader = PS_VogelBlur;
}
}
}
}
1 change: 1 addition & 0 deletions shaders/cFrameBlending.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cGaussianBlur.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cConvolution.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cGrain.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cConvolution.fxh"

Expand Down
1 change: 1 addition & 0 deletions shaders/cGrayscale.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cLetterBox.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cMedian.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
3 changes: 2 additions & 1 deletion shaders/cMotionBlur.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cColorSpaces.fxh"
#include "shared/cConvolution.fxh"
Expand Down Expand Up @@ -221,4 +222,4 @@ namespace cMotionBlur
PixelShader = PS_MotionBlur;
}
}
}
}
1 change: 1 addition & 0 deletions shaders/cNoiseBlur.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cProcedural.fxh"
#include "shared/cCamera.fxh"
Expand Down
1 change: 1 addition & 0 deletions shaders/cOpticalFlow.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cColorSpaces.fxh"
#include "shared/cConvolution.fxh"
Expand Down
3 changes: 2 additions & 1 deletion shaders/cOverlay.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down Expand Up @@ -109,4 +110,4 @@ technique CShade_Overlay
VertexShader = VS_Overlay;
PixelShader = PS_Overlay;
}
}
}
1 change: 1 addition & 0 deletions shaders/cPixelate.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
3 changes: 2 additions & 1 deletion shaders/cPyramidBlur.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

namespace cPyramidBlur
Expand Down Expand Up @@ -234,4 +235,4 @@ namespace cPyramidBlur
PixelShader = PS_Upscale0;
}
}
}
}
1 change: 1 addition & 0 deletions shaders/cShard.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/cTemplateMatching.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

namespace cTemplateMatching
Expand Down
3 changes: 2 additions & 1 deletion shaders/cThreshold.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down Expand Up @@ -63,4 +64,4 @@ technique CShade_Threshold
VertexShader = VS_Quad;
PixelShader = PS_Threshold;
}
}
}
1 change: 1 addition & 0 deletions shaders/cTransform.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/kContour.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/kDatamosh.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cColorSpaces.fxh"
#include "shared/cConvolution.fxh"
Expand Down
1 change: 1 addition & 0 deletions shaders/kMirror.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"

/*
Expand Down
1 change: 1 addition & 0 deletions shaders/kVignette.fx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "shared/cGraphics.fxh"
#include "shared/cCamera.fxh"

Expand Down
2 changes: 1 addition & 1 deletion shaders/shared/cColorSpaces.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
return float3(H, S, I);
}

#endif
#endif
3 changes: 2 additions & 1 deletion shaders/shared/cConvolution.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@
OutputColor0.y = ((A + B) - (C + D)) / 4.0;
return OutputColor0;
}
#endif

#endif
4 changes: 3 additions & 1 deletion shaders/shared/cGraphics.fxh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "cMacros.fxh"

#if !defined(INCLUDE_GRAPHICS)
Expand Down Expand Up @@ -83,4 +84,5 @@
float Ly = dot(Iy, Iy);
return float2(0.0, 0.5) * max(0.0, log2(max(Lx, Ly)));
}
#endif

#endif
1 change: 1 addition & 0 deletions shaders/shared/cMacros.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@
AddressV = ADDRESS; \
SRGBTexture = READ_SRGB; \
};

#endif
2 changes: 2 additions & 0 deletions shaders/shared/cMotionEstimation.fxh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include "cGraphics.fxh"

#if !defined(INCLUDE_MOTIONESTIMATION)
Expand Down Expand Up @@ -265,4 +266,5 @@
Vectors += NormalizeMotionVectors(SearchArea(SampleImage, B, Template), B.PixelSize);
return PackMotionVectors(Vectors);
}

#endif
3 changes: 1 addition & 2 deletions shaders/shared/cProcedural.fxh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


#if !defined(INCLUDE_PROCEDURAL)
#define INCLUDE_PROCEDURAL

Expand Down Expand Up @@ -122,4 +121,4 @@
return saturate((Noise * 0.5) + 0.5);
}

#endif
#endif

0 comments on commit d329acb

Please sign in to comment.