Skip to content

Commit

Permalink
Traktor: Some minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Mar 28, 2024
1 parent 9466ffd commit b62b5f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions code/Shape/Editor/Spline/ControlPointComponent.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* TRAKTOR
* Copyright (c) 2022 Anders Pistol.
* Copyright (c) 2022-2024 Anders Pistol.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -18,12 +18,10 @@
# define T_DLLCLASS T_DLLIMPORT
#endif

namespace traktor
namespace traktor::shape
{
namespace shape
{

/*! \brief
/*!
* \ingroup Shape
*/
class T_DLLCLASS ControlPointComponent : public world::IEntityComponent
Expand Down Expand Up @@ -55,6 +53,4 @@ class T_DLLCLASS ControlPointComponent : public world::IEntityComponent
float m_scale;
};

}
}

2 changes: 1 addition & 1 deletion code/Spray/EmitterInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class T_DLLCLASS EmitterInstance : public Object

Point* addPoints(uint32_t points)
{
uint32_t offset = uint32_t(m_points.size());
const uint32_t offset = uint32_t(m_points.size());
m_points.resize(offset + points);
return &m_points[offset];
}
Expand Down
4 changes: 2 additions & 2 deletions code/World/Shared/Passes/GBufferPass.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* TRAKTOR
* Copyright (c) 2023 Anders Pistol.
* Copyright (c) 2023-2024 Anders Pistol.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -56,7 +56,7 @@ render::handle_t GBufferPass::setup(
rgtd.targets[0].colorFormat = render::TfR16G16B16A16F; // (GBufferA) Depth (R), Normal (GBA)
rgtd.targets[1].colorFormat = render::TfR8G8B8A8; // (GBufferB) Albedo (RGB)
rgtd.targets[2].colorFormat = render::TfR8G8B8A8; // (GBufferC) Roughness (R), Metalness (G), Specular (B), Decal Response (A)
rgtd.targets[3].colorFormat = render::TfR10G10B10A2; // (GBufferD) Irradiance (RGB), Sky occlusion (A)
rgtd.targets[3].colorFormat = render::TfR10G10B10A2; // (GBufferD) Irradiance (RGB)

auto gbufferTargetSetId = renderGraph.addTransientTargetSet(L"GBuffer", rgtd, outputTargetSetId, outputTargetSetId);

Expand Down

0 comments on commit b62b5f5

Please sign in to comment.