reformat all files with clang-format
This commit is contained in:
parent
7c5a76e58b
commit
0eab948728
79 changed files with 659 additions and 707 deletions
|
@ -58,7 +58,7 @@ void DrawPixel(int x, int y, const Math::Vec4<u8>& color) {
|
|||
|
||||
default:
|
||||
LOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ const Math::Vec4<u8> GetPixel(int x, int y) {
|
|||
|
||||
default:
|
||||
LOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ u32 GetDepth(int x, int y) {
|
|||
return Color::DecodeD24S8(src_pixel).x;
|
||||
default:
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ void SetDepth(int x, int y, u32 value) {
|
|||
|
||||
default:
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ void SetStencil(int x, int y, u8 value) {
|
|||
|
||||
default:
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ std::tuple<Math::Vec4<u8>, Math::Vec4<u8>> ComputeFragmentsColors(
|
|||
surface_tangent = perturbation;
|
||||
} else {
|
||||
LOG_ERROR(HW_GPU, "Unknown bump mode {}",
|
||||
static_cast<u32>(lighting.config0.bump_mode.Value()));
|
||||
static_cast<u32>(lighting.config0.bump_mode.Value()));
|
||||
}
|
||||
} else {
|
||||
surface_normal = Math::MakeVec(0.0f, 0.0f, 1.0f);
|
||||
|
|
|
@ -363,8 +363,7 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||
}
|
||||
default:
|
||||
// TODO: Change to LOG_ERROR when more types are handled.
|
||||
LOG_DEBUG(HW_GPU, "Unhandled texture type {:x}",
|
||||
(int)texture.config.type);
|
||||
LOG_DEBUG(HW_GPU, "Unhandled texture type {:x}", (int)texture.config.type);
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
}
|
||||
|
@ -844,8 +843,7 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||
return std::min(combiner_output.a(), static_cast<u8>(255 - dest.a()));
|
||||
|
||||
default:
|
||||
LOG_CRITICAL(HW_GPU, "Unknown blend factor {:x}",
|
||||
static_cast<u32>(factor));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown blend factor {:x}", static_cast<u32>(factor));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue