diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 04:07:55 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-09-04 04:07:55 +0000 |
| commit | ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce (patch) | |
| tree | a9aba57b0129cdf991575ea877ac97b75ab42eb3 /Graphics/GraphicsTools | |
| parent | Added alignment parameter to VulkanUploadHeap::Allocate() (diff) | |
| download | DiligentCore-ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce.tar.gz DiligentCore-ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce.zip | |
Code formatting
Diffstat (limited to 'Graphics/GraphicsTools')
| -rw-r--r-- | Graphics/GraphicsTools/src/GraphicsUtilities.cpp | 28 |
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: |
