From a79081dacf28f835acc7130cd54b6972c7c9cf11 Mon Sep 17 00:00:00 2001 From: papadanku Date: Mon, 2 Sep 2024 09:44:56 -0700 Subject: [PATCH] Added tooltip for each shader --- shaders/cAntiAliasing.fx | 2 +- shaders/cAutoExposure.fx | 2 +- shaders/cBlend.fx | 4 ++-- shaders/cBloom.fx | 2 +- shaders/cCheckerBoard.fx | 2 +- shaders/cChromaticity.fx | 2 +- shaders/cCircles.fx | 2 +- shaders/cColorBand.fx | 2 +- shaders/cContrastNormalization.fx | 2 +- shaders/cEnsor.fx | 2 +- shaders/cFrameBlend.fx | 2 +- shaders/cGaussianBlurH.fx | 2 +- shaders/cGaussianBlurV.fx | 2 +- shaders/cGrayscale.fx | 2 +- shaders/cImageSharpen.fx | 2 +- shaders/cLens.fx | 2 +- shaders/cLetterBox.fx | 2 +- shaders/cMedian.fx | 2 +- shaders/cMotionBlur.fx | 2 +- shaders/cNoiseBlur.fx | 2 +- shaders/cOpticalFlow.fx | 2 +- shaders/cOverlay.fx | 2 +- shaders/cPixelate.fx | 2 +- shaders/cSolidColor.fx | 3 +-- shaders/cThreshold.fx | 2 +- shaders/cTransform.fx | 2 +- shaders/kContour.fx | 2 +- shaders/kDatamosh.fx | 2 +- shaders/kMirror.fx | 2 +- 29 files changed, 30 insertions(+), 31 deletions(-) diff --git a/shaders/cAntiAliasing.fx b/shaders/cAntiAliasing.fx index 51a2f88..6940a19 100644 --- a/shaders/cAntiAliasing.fx +++ b/shaders/cAntiAliasing.fx @@ -287,7 +287,7 @@ float4 PS_AntiAliasing(CShade_VS2PS_Quad Input) : SV_TARGET0 } } -technique CShade_AntiAliasing +technique CShade_AntiAliasing < ui_tooltip = "Fast Approximate Anti-Aliasing (FXAA)"; > { pass AntiAliasing { diff --git a/shaders/cAutoExposure.fx b/shaders/cAutoExposure.fx index 3156084..a1da5f0 100644 --- a/shaders/cAutoExposure.fx +++ b/shaders/cAutoExposure.fx @@ -172,7 +172,7 @@ float3 PS_Exposure(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(Output.rgb, _CShadeAlphaFactor)); } -technique CShade_AutoExposure +technique CShade_AutoExposure < ui_tooltip = "Auto-exposure through hardware blending"; > { pass { diff --git a/shaders/cBlend.fx b/shaders/cBlend.fx index b717c74..8d79b08 100644 --- a/shaders/cBlend.fx +++ b/shaders/cBlend.fx @@ -76,7 +76,7 @@ float4 PS_Blend(CShade_VS2PS_Quad Input) : SV_TARGET0 return OutputColor; } -technique CShade_CopyBuffer +technique CShade_CopyBuffer < ui_tooltip = "Create CBlend's copy texture"; > { pass { @@ -88,7 +88,7 @@ technique CShade_CopyBuffer } } -technique CShade_BlendBuffer +technique CShade_BlendBuffer < ui_tooltip = "Blend with CBlend's copy texture"; > { pass { diff --git a/shaders/cBloom.fx b/shaders/cBloom.fx index e328a1a..fc00f5d 100644 --- a/shaders/cBloom.fx +++ b/shaders/cBloom.fx @@ -272,7 +272,7 @@ float4 PS_Composite(CShade_VS2PS_Quad Input) : SV_TARGET0 RenderTarget0 = RENDER_TARGET; \ } -technique CShade_Bloom +technique CShade_Bloom < ui_tooltip = "Dual-Kawase bloom with built-in autoexposure"; > { // Prefilter stuff, emulate autoexposure CREATE_PASS(CShade_VS_Quad, PS_Prefilter, TempTex0_RGBA16F, FALSE) diff --git a/shaders/cCheckerBoard.fx b/shaders/cCheckerBoard.fx index 819a339..3f45add 100644 --- a/shaders/cCheckerBoard.fx +++ b/shaders/cCheckerBoard.fx @@ -45,7 +45,7 @@ float4 PS_Checkerboard(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(Checkerboard, _CShadeAlphaFactor)); } -technique CShade_CheckerBoard +technique CShade_CheckerBoard < ui_tooltip = "Adjustable checkerboard effect"; > { pass { diff --git a/shaders/cChromaticity.fx b/shaders/cChromaticity.fx index 15f10c6..0236994 100644 --- a/shaders/cChromaticity.fx +++ b/shaders/cChromaticity.fx @@ -79,7 +79,7 @@ float4 PS_Chromaticity(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(Chromaticity.rgb, _CShadeAlphaFactor)); } -technique CShade_Chromaticity +technique CShade_Chromaticity < ui_tooltip = "Adjustable chromaticity effect"; > { pass { diff --git a/shaders/cCircles.fx b/shaders/cCircles.fx index 95fd9bd..2fbc4d0 100644 --- a/shaders/cCircles.fx +++ b/shaders/cCircles.fx @@ -351,7 +351,7 @@ float4 PS_Blit(CShade_VS2PS_Quad Input) : SV_TARGET0 } #endif -technique CShade_Circles +technique CShade_Circles < ui_tooltip = "Creates circles based on image features"; > { pass { diff --git a/shaders/cColorBand.fx b/shaders/cColorBand.fx index 33c55d3..210a0f5 100644 --- a/shaders/cColorBand.fx +++ b/shaders/cColorBand.fx @@ -63,7 +63,7 @@ float4 PS_Color(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(ColorMap.rgb, _CShadeAlphaFactor)); } -technique CShade_ColorBand +technique CShade_ColorBand < ui_tooltip = "Artificial quantization effect"; > { pass { diff --git a/shaders/cContrastNormalization.fx b/shaders/cContrastNormalization.fx index 15c90dd..8ee4894 100644 --- a/shaders/cContrastNormalization.fx +++ b/shaders/cContrastNormalization.fx @@ -86,7 +86,7 @@ float4 PS_ContrastNormalization(CShade_VS2PS_Quad Input) : SV_TARGET0 } } -technique CShade_ContrastNormalization +technique CShade_ContrastNormalization < ui_tooltip = "Local normalization algorithms"; > { pass { diff --git a/shaders/cEnsor.fx b/shaders/cEnsor.fx index 56cff1b..ed91c8d 100644 --- a/shaders/cEnsor.fx +++ b/shaders/cEnsor.fx @@ -125,7 +125,7 @@ float4 PS_Censor(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(OutputColor.rgb, _CShadeAlphaFactor)); } -technique CShade_Censor +technique CShade_Censor < ui_tooltip = "Pixelates the screen based on features"; > { pass { diff --git a/shaders/cFrameBlend.fx b/shaders/cFrameBlend.fx index 0cb772b..ba8af9b 100644 --- a/shaders/cFrameBlend.fx +++ b/shaders/cFrameBlend.fx @@ -36,7 +36,7 @@ float4 PS_Display(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(tex2D(SampleBlendTex, Input.Tex0).rgb, _CShadeAlphaFactor)); } -technique CShade_FrameBlend +technique CShade_FrameBlend < ui_tooltip = "Frame-blending effect"; > { pass { diff --git a/shaders/cGaussianBlurH.fx b/shaders/cGaussianBlurH.fx index 4193538..49dd4b2 100644 --- a/shaders/cGaussianBlurH.fx +++ b/shaders/cGaussianBlurH.fx @@ -1,7 +1,7 @@ #include "cGaussianBlur.fxh" -technique CShade_HorizontalBlur +technique CShade_HorizontalBlur < ui_tooltip = "Horizonal Gaussian blur effect"; > { pass { diff --git a/shaders/cGaussianBlurV.fx b/shaders/cGaussianBlurV.fx index 377cb7d..bac1379 100644 --- a/shaders/cGaussianBlurV.fx +++ b/shaders/cGaussianBlurV.fx @@ -1,7 +1,7 @@ #include "cGaussianBlur.fxh" -technique CShade_VerticalBlur +technique CShade_VerticalBlur < ui_tooltip = "Horizonal Gaussian blur effect"; > { pass { diff --git a/shaders/cGrayscale.fx b/shaders/cGrayscale.fx index d2a61ef..4c3387e 100644 --- a/shaders/cGrayscale.fx +++ b/shaders/cGrayscale.fx @@ -25,7 +25,7 @@ float4 PS_Luminance(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(Luma, _CShadeAlphaFactor)); } -technique CShade_Grayscale +technique CShade_Grayscale < ui_tooltip = "Grayscale effect"; > { pass { diff --git a/shaders/cImageSharpen.fx b/shaders/cImageSharpen.fx index 94c5337..3376366 100644 --- a/shaders/cImageSharpen.fx +++ b/shaders/cImageSharpen.fx @@ -38,7 +38,7 @@ float4 PS_CasFilterNoScaling(CShade_VS2PS_Quad Input): SV_TARGET0 return CBlend_OutputChannels(float4(OutputColor.rgb, _CShadeAlphaFactor)); } -technique CShade_ImageSharpen +technique CShade_ImageSharpen < ui_tooltip = "FidelityFX | Robust Contrast Adaptive Sharpening (RCAS)"; > { pass { diff --git a/shaders/cLens.fx b/shaders/cLens.fx index 9c14055..8b90021 100644 --- a/shaders/cLens.fx +++ b/shaders/cLens.fx @@ -106,7 +106,7 @@ float4 PS_Lens(CShade_VS2PS_Quad Input): SV_TARGET0 return CBlend_OutputChannels(float4(OutputColor.rgb, _CShadeAlphaFactor)); } -technique CShade_Lens +technique CShade_Lens < ui_tooltip = "FidelityFX | Lens"; > { pass { diff --git a/shaders/cLetterBox.fx b/shaders/cLetterBox.fx index c46d4e9..cfe8c03 100644 --- a/shaders/cLetterBox.fx +++ b/shaders/cLetterBox.fx @@ -58,7 +58,7 @@ float4 PS_Letterbox(CShade_VS2PS_Quad Input) : SV_TARGET0 #define CBLEND_DESTBLENDALPHA ZERO #endif -technique CShade_LetterBox +technique CShade_LetterBox < ui_tooltip = "Adjustable letterboxing effect"; > { pass { diff --git a/shaders/cMedian.fx b/shaders/cMedian.fx index 95a9de5..b04fe61 100644 --- a/shaders/cMedian.fx +++ b/shaders/cMedian.fx @@ -32,7 +32,7 @@ CREATE_MEDIAN_PS(PS_Median1, 0.0) PixelShader = PIXELSHADER; \ } \ -technique CShade_Median +technique CShade_Median < ui_tooltip = "CShade_Median"; > { #if HIERARCHIAL_LEVELS > 4 CREATE_MEDIAN_PASS(PS_Median5) diff --git a/shaders/cMotionBlur.fx b/shaders/cMotionBlur.fx index d5c37e5..07ad188 100644 --- a/shaders/cMotionBlur.fx +++ b/shaders/cMotionBlur.fx @@ -170,7 +170,7 @@ float4 PS_MotionBlur(CShade_VS2PS_Quad Input) : SV_TARGET0 RenderTarget0 = RENDER_TARGET; \ } -technique CShade_MotionBlur +technique CShade_MotionBlur < ui_tooltip = "Motion blur effect"; > { // Normalize current frame CREATE_PASS(CShade_VS_Quad, PS_Normalize, TempTex1_RG8) diff --git a/shaders/cNoiseBlur.fx b/shaders/cNoiseBlur.fx index 149827d..7505a5f 100644 --- a/shaders/cNoiseBlur.fx +++ b/shaders/cNoiseBlur.fx @@ -116,7 +116,7 @@ float4 PS_NoiseBlur(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(OutputColor.rgb / Weight, _CShadeAlphaFactor)); } -technique CShade_NoiseBlur +technique CShade_NoiseBlur < ui_tooltip = "Adjustable noise blur effect"; > { pass { diff --git a/shaders/cOpticalFlow.fx b/shaders/cOpticalFlow.fx index 9d87046..8478f8a 100644 --- a/shaders/cOpticalFlow.fx +++ b/shaders/cOpticalFlow.fx @@ -239,7 +239,7 @@ float4 PS_Shading(CShade_VS2PS_Quad Input) : SV_TARGET0 RenderTarget0 = RENDER_TARGET; \ } -technique CShade_OpticalFlow +technique CShade_OpticalFlow < ui_tooltip = "Lucas-Kanade optical flow"; > { // Normalize current frame CREATE_PASS(CShade_VS_Quad, PS_Normalize, TempTex1_RG8) diff --git a/shaders/cOverlay.fx b/shaders/cOverlay.fx index cabfefc..727cef5 100644 --- a/shaders/cOverlay.fx +++ b/shaders/cOverlay.fx @@ -99,7 +99,7 @@ float4 PS_Overlay(VS2PS Input) : SV_TARGET0 return float4(Color.rgb, Crop); } -technique CShade_Overlay +technique CShade_Overlay < ui_tooltip = "Applies a zoomed copy of the backbuffer"; > { pass { diff --git a/shaders/cPixelate.fx b/shaders/cPixelate.fx index 30a3bec..574e9f1 100644 --- a/shaders/cPixelate.fx +++ b/shaders/cPixelate.fx @@ -25,7 +25,7 @@ float4 PS_Color(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(OutputColor.rgb, _CShadeAlphaFactor)); } -technique CShade_Pixelate +technique CShade_Pixelate < ui_tooltip = "Adjustable pixelation effect"; > { pass { diff --git a/shaders/cSolidColor.fx b/shaders/cSolidColor.fx index 5a4b26f..eee3145 100644 --- a/shaders/cSolidColor.fx +++ b/shaders/cSolidColor.fx @@ -17,8 +17,7 @@ float4 PS_Color(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(_Color, _CShadeAlphaFactor)); } -// Use BlendOp to multiple the backbuffer with this quad's color -technique CShade_SolidColor +technique CShade_SolidColor < ui_tooltip = "Output a solid color (use \"Preprocessor Definitions\" for blending)"; > { pass { diff --git a/shaders/cThreshold.fx b/shaders/cThreshold.fx index 8b12bbf..ed13c73 100644 --- a/shaders/cThreshold.fx +++ b/shaders/cThreshold.fx @@ -53,7 +53,7 @@ float4 PS_Threshold(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(saturate(lerp(Brightness, Color.rgb, _Saturation) * _Intensity), _CShadeAlphaFactor)); } -technique CShade_Threshold +technique CShade_Threshold < ui_tooltip = "Threshold the image (use \"Preprocessor Definitions\" for blending)"; > { pass { diff --git a/shaders/cTransform.fx b/shaders/cTransform.fx index ee3601d..15ceb9e 100644 --- a/shaders/cTransform.fx +++ b/shaders/cTransform.fx @@ -60,7 +60,7 @@ float4 PS_Matrix(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(Color.rgb, _CShadeAlphaFactor)); } -technique CShade_Transform +technique CShade_Transform < ui_tooltip = "Translate, scale, and/or rotate the backbuffer"; > { pass { diff --git a/shaders/kContour.fx b/shaders/kContour.fx index cd31911..2749183 100644 --- a/shaders/kContour.fx +++ b/shaders/kContour.fx @@ -158,7 +158,7 @@ float3 PS_Grad(CShade_VS2PS_Quad Input) : SV_TARGET0 return lerp(BackgroundColor, _FrontColor.rgb, Mask * _FrontColor.a); } -technique CShade_KinoContour +technique CShade_KinoContour < ui_tooltip = "Keijiro Takahashi | Contour line filter"; > { pass { diff --git a/shaders/kDatamosh.fx b/shaders/kDatamosh.fx index 05cf96b..d49c24c 100644 --- a/shaders/kDatamosh.fx +++ b/shaders/kDatamosh.fx @@ -318,7 +318,7 @@ float4 PS_CopyColorTex(CShade_VS2PS_Quad Input) : SV_TARGET0 RenderTarget0 = RENDER_TARGET; \ } -technique CShade_KinoDatamosh +technique CShade_KinoDatamosh < ui_tooltip = "Keijiro Takahashi | An image effect that simulates video compression artifacts"; > { // Normalize current frame CREATE_PASS(CShade_VS_Quad, PS_Normalize, TempTex1_RG8) diff --git a/shaders/kMirror.fx b/shaders/kMirror.fx index 27f8db1..19dd456 100644 --- a/shaders/kMirror.fx +++ b/shaders/kMirror.fx @@ -75,7 +75,7 @@ float4 PS_Mirror(CShade_VS2PS_Quad Input) : SV_TARGET0 return CBlend_OutputChannels(float4(tex2D(CShade_SampleColorTex, Input.Tex0).rgb, _CShadeAlphaFactor)); } -technique CShade_KinoMirror +technique CShade_KinoMirror < ui_tooltip = "Keijiro Takahashi | Mirroring and kaleidoscope effect"; > { pass {