summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-04 04:07:55 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-04 04:07:55 +0000
commitab80c7d28eb0ca930d7ccb4c1deffab96eda05ce (patch)
treea9aba57b0129cdf991575ea877ac97b75ab42eb3 /Graphics/GraphicsTools
parentAdded alignment parameter to VulkanUploadHeap::Allocate() (diff)
downloadDiligentCore-ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce.tar.gz
DiligentCore-ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce.zip
Code formatting
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/GraphicsUtilities.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
index 7db37e64..2abbd9ce 100644
--- a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
+++ b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
@@ -83,30 +83,30 @@ void GenerateCheckerBoardPattern(Uint32 Width, Uint32 Height, TEXTURE_FORMAT Fmt
case COMPONENT_TYPE_UNORM:
GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes,
[](Uint8 *pDstTexel, Uint32 NumComponents, float fVal)
- {
- Uint8 uVal = static_cast<Uint8>(fVal * 255.f);
- for (Uint32 c = 0; c < NumComponents; ++c)
- pDstTexel[c] = uVal;
- });
+ {
+ Uint8 uVal = static_cast<Uint8>(fVal * 255.f);
+ for (Uint32 c = 0; c < NumComponents; ++c)
+ pDstTexel[c] = uVal;
+ });
break;
case COMPONENT_TYPE_UNORM_SRGB:
GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes,
[](Uint8 *pDstTexel, Uint32 NumComponents, float fVal)
- {
- Uint8 uVal = static_cast<Uint8>( LinearToSRGB(fVal) * 255.f);
- for (Uint32 c = 0; c < NumComponents; ++c)
- pDstTexel[c] = uVal;
- });
+ {
+ Uint8 uVal = static_cast<Uint8>( LinearToSRGB(fVal) * 255.f);
+ for (Uint32 c = 0; c < NumComponents; ++c)
+ pDstTexel[c] = uVal;
+ });
break;
case COMPONENT_TYPE_FLOAT:
GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes,
[](Uint8 *pDstTexel, Uint32 NumComponents, float fVal)
- {
- for (Uint32 c = 0; c < NumComponents; ++c)
- (reinterpret_cast<float*>(pDstTexel))[c] = fVal;
- });
+ {
+ for (Uint32 c = 0; c < NumComponents; ++c)
+ (reinterpret_cast<float*>(pDstTexel))[c] = fVal;
+ });
break;
default: