Skip to content

Commit

Permalink
Misc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Apr 16, 2022
1 parent 6a6c92a commit bab5216
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions shaders/cBloom.fx
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,27 @@
MipFilter = LINEAR; \
};

#define DOWNSAMPLE_VS(NAME, TEXEL_SIZE) \
#define DOWNSAMPLE_VS(NAME, TEXEL_SIZE) \
void NAME(in uint ID : SV_VERTEXID, out float4 Position : SV_POSITION, out float4 TexCoord[4] : TEXCOORD0) \
{ \
{ \
Downsample_VS(ID, Position, TexCoord, TEXEL_SIZE); \
}

#define UPSAMPLE_VS(NAME, TEXEL_SIZE) \
#define UPSAMPLE_VS(NAME, TEXEL_SIZE) \
void NAME(in uint ID : SV_VERTEXID, out float4 Position : SV_POSITION, out float4 TexCoord[3] : TEXCOORD0) \
{ \
{ \
Upsample_VS(ID, Position, TexCoord, TEXEL_SIZE); \
}

#define DOWNSAMPLE_PS(NAME, SAMPLER) \
#define DOWNSAMPLE_PS(NAME, SAMPLER) \
void NAME(in float4 Position : SV_POSITION, in float4 TexCoord[4] : TEXCOORD0, out float4 OutputColor0 : SV_TARGET0) \
{ \
{ \
Downsample(SAMPLER, TexCoord, OutputColor0); \
}

#define UPSAMPLE_PS(NAME, SAMPLER, LEVEL_WEIGHT) \
#define UPSAMPLE_PS(NAME, SAMPLER, LEVEL_WEIGHT) \
void NAME(in float4 Position : SV_POSITION, in float4 TexCoord[3] : TEXCOORD0, out float4 OutputColor0 : SV_TARGET0) \
{ \
{ \
Upsample(SAMPLER, TexCoord, LEVEL_WEIGHT, OutputColor0); \
}

Expand Down
16 changes: 8 additions & 8 deletions shaders/cDualFilter.fx
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,27 @@
MipFilter = LINEAR; \
};

#define DOWNSAMPLE_VS(NAME, TEXEL_SIZE) \
#define DOWNSAMPLE_VS(NAME, TEXEL_SIZE) \
void NAME(in uint ID : SV_VERTEXID, inout float4 Position : SV_POSITION, inout float4 TexCoords[4] : TEXCOORD0) \
{ \
{ \
Downsample_VS(ID, Position, TexCoords, TEXEL_SIZE); \
}

#define UPSAMPLE_VS(NAME, TEXEL_SIZE) \
#define UPSAMPLE_VS(NAME, TEXEL_SIZE) \
void NAME(in uint ID : SV_VERTEXID, inout float4 Position : SV_POSITION, inout float4 TexCoords[3] : TEXCOORD0) \
{ \
{ \
Upsample_VS(ID, Position, TexCoords, TEXEL_SIZE); \
}

#define DOWNSAMPLE_PS(NAME, SAMPLER) \
#define DOWNSAMPLE_PS(NAME, SAMPLER) \
void NAME(in float4 Position : SV_POSITION, in float4 TexCoords[4] : TEXCOORD0, out float4 OutputColor0 : SV_TARGET0) \
{ \
{ \
Downsample_PS(SAMPLER, TexCoords, OutputColor0); \
}

#define UPSAMPLE_PS(NAME, SAMPLER) \
#define UPSAMPLE_PS(NAME, SAMPLER) \
void NAME(in float4 Position : SV_POSITION, in float4 TexCoords[3] : TEXCOORD0, out float4 OutputColor0 : SV_TARGET0) \
{ \
{ \
Upsample_PS(SAMPLER, TexCoords, OutputColor0); \
}

Expand Down

0 comments on commit bab5216

Please sign in to comment.