Skip to content

Commit b892cf0

Browse files
committed
clang format
1 parent 90ca0d7 commit b892cf0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/graphic/Fast3D/gfx_pc.cpp

+12-8
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,22 @@ const static std::unordered_map<Attribute, std::any> f3dex2AttrHandler = {
156156
{ CULL_BOTH, F3DEX2_G_CULL_BOTH },
157157
};
158158

159-
const static std::unordered_map<Attribute, std::any> f3dexAttrHandler = {
160-
{ MTX_PROJECTION, F3DEX_G_MTX_PROJECTION }, { MTX_LOAD, F3DEX_G_MTX_LOAD }, { MTX_PUSH, F3DEX_G_MTX_PUSH },
161-
{ MTX_NOPUSH, F3DEX_G_MTX_NOPUSH }, { CULL_FRONT, F3DEX_G_CULL_FRONT }, { CULL_BACK, F3DEX_G_CULL_BACK },
162-
{ CULL_BOTH, F3DEX_G_CULL_BOTH }
163-
};
159+
const static std::unordered_map<Attribute, std::any> f3dexAttrHandler = { { MTX_PROJECTION, F3DEX_G_MTX_PROJECTION },
160+
{ MTX_LOAD, F3DEX_G_MTX_LOAD },
161+
{ MTX_PUSH, F3DEX_G_MTX_PUSH },
162+
{ MTX_NOPUSH, F3DEX_G_MTX_NOPUSH },
163+
{ CULL_FRONT, F3DEX_G_CULL_FRONT },
164+
{ CULL_BACK, F3DEX_G_CULL_BACK },
165+
{ CULL_BOTH, F3DEX_G_CULL_BOTH } };
164166

165167
static constexpr std::array ucode_attr_handlers = {
166-
&f3dexAttrHandler, &f3dexAttrHandler, &f3dex2AttrHandler, &f3dex2AttrHandler,
168+
&f3dexAttrHandler,
169+
&f3dexAttrHandler,
170+
&f3dex2AttrHandler,
171+
&f3dex2AttrHandler,
167172
};
168173

169-
template <typename T>
170-
static constexpr T get_attr(Attribute attr) {
174+
template <typename T> static constexpr T get_attr(Attribute attr) {
171175
const auto ucode_map = ucode_attr_handlers[ucode_handler_index];
172176
assert(ucode_map->contains(attr) && "Attribute not found in the current ucode handler");
173177
return std::any_cast<T>(ucode_map->at(attr));

0 commit comments

Comments
 (0)