Skip to content

Commit 4dd9224

Browse files
axmol-botgithub-actions[bot]
authored andcommitted
Committing clang-format changes
1 parent fd4c964 commit 4dd9224

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

axmol/rhi/ProgramState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void ProgramState::setUniform(const rhi::UniformLocation& uniformLocation, const
270270
if (uniformLocation.stages[0])
271271
{
272272
#if AX_RENDER_API == AX_RENDER_API_GL
273-
auto& info = uniformLocation.stages[0];
273+
auto& info = uniformLocation.stages[0];
274274
const auto resolvedOffset = info.location + info.offset;
275275
#else
276276
const auto resolvedOffset = uniformLocation.stages[0].offset;

axmol/rhi/d3d/RenderContextD3D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ void RenderContextImpl::prepareDrawing()
776776
}
777777

778778
// bind vertex uniform buffer
779-
auto vertUB = _programState->getVertexUniformBuffer();
779+
auto vertUB = _programState->getVertexUniformBuffer();
780780
if (!vertUB.empty())
781781
program->bindVertexUniformBuffer(context, vertUB.data(), vertUB.size(), VS_UBO_BINDING_INDEX);
782782

axmol/rhi/metal/BufferMTL.mm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ of this software and associated documentation files (the "Software"), to deal
2929
namespace ax::rhi::mtl
3030
{
3131

32-
BufferImpl::BufferImpl(id<MTLDevice> mtlDevice, std::size_t size, BufferType type, BufferUsage usage, const void* initial)
32+
BufferImpl::BufferImpl(id<MTLDevice> mtlDevice,
33+
std::size_t size,
34+
BufferType type,
35+
BufferUsage usage,
36+
const void* initial)
3337
: Buffer(size, type, usage)
3438
{
3539
if (BufferUsage::DYNAMIC == usage)
@@ -51,7 +55,7 @@ of this software and associated documentation files (the "Software"), to deal
5155
_mtlBuffer = [mtlDevice newBufferWithLength:size options:MTLResourceStorageModeShared];
5256
}
5357

54-
if(initial)
58+
if (initial)
5559
updateData(initial, size);
5660
}
5761

axmol/rhi/vulkan/RenderContextVK.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class RenderContextImpl : public RenderContext
163163
void destroyUniformRingBuffers();
164164
// Reset current frame ring write head (after waiting its fence)
165165
void resetUniformRingForCurrentFrame();
166-
166+
167167
UniformSlice allocateUniformSlice(std::size_t size);
168168
#pragma endregion
169169

templates/cpp/Source/AppDelegate.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727

2828
#include "axmol/axmol.h"
2929

30-
/**
31-
@brief The axmol Application.
30+
/**
31+
@brief The axmol Application.
3232
33-
Private inheritance here hides part of interface from Director.
34-
*/
33+
Private inheritance here hides part of interface from Director.
34+
*/
3535
class AppDelegate : private ax::Application
3636
{
3737
public:

0 commit comments

Comments
 (0)