-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/texture view #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
fe81038
feebbac
37173ae
aa84a55
cbe81f1
7dcb953
abf4e33
2d0a6ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| #version 450 | ||
|
|
||
| layout(location = 0) in vec3 fragColor; | ||
| layout(location = 1) in vec2 fragTexCoord; | ||
|
|
||
| layout(location = 0) out vec4 outColor; | ||
|
|
||
| layout(binding = 1) uniform sampler2D texSampler; | ||
|
|
||
| void main() { | ||
| outColor = vec4(fragColor, 1.0); | ||
| outColor = texture(texSampler, fragTexCoord); | ||
| } | ||
|
|
||
| +0 −5 | CMakeLists.txt | |
| +0 −319 | code/Common/Logger.cpp | |
| +0 −62 | include/cppcore/Common/DateTime.h | |
| +7 −7 | include/cppcore/Common/Hash.h | |
| +0 −253 | include/cppcore/Common/Logger.h | |
| +7 −7 | include/cppcore/Common/Sort.h | |
| +1 −1 | include/cppcore/Common/TBitField.h | |
| +1 −5 | include/cppcore/Common/TOptional.h | |
| +18 −52 | include/cppcore/Common/TStringBase.h | |
| +6 −1 | include/cppcore/Container/TArray.h | |
| +1 −1 | include/cppcore/IO/FileSystem.h | |
| +0 −44 | test/common/DateTimeTest.cpp | |
| +0 −32 | test/common/LoggerTest.cpp | |
| +2 −2 | test/common/TStringBaseTest.cpp | |
| +4 −3 | test/memory/TScratchAllocatorTest.cpp |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,14 +15,14 @@ namespace segfault::application { | |||||
| namespace { | ||||||
| std::string getStartLog() { | ||||||
| std::string entry = "===========================================================================\n"; | ||||||
| entry.append("| SegFault version 0.0.l |\n"); | ||||||
| entry.append("| SegFault version 0.0.l inited.\n"); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo in version string: The version string appears to use a lowercase letter 'l' instead of the number '1'. ✏️ Proposed fix- entry.append("| SegFault version 0.0.l inited.\n");
+ entry.append("| SegFault version 0.0.1 inited.\n");📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| entry.append("==========================================================================="); | ||||||
| return entry; | ||||||
| } | ||||||
|
|
||||||
| std::string getEndLog() { | ||||||
| std::string entry = "===========================================================================\n"; | ||||||
| entry.append("|h SegFault run finished ... |\n"); | ||||||
| entry.append("| SegFault run ended.\n"); | ||||||
| entry.append("==========================================================================="); | ||||||
| return entry; | ||||||
| } | ||||||
|
|
@@ -71,6 +71,8 @@ namespace segfault::application { | |||||
| return nullptr; | ||||||
| } | ||||||
|
|
||||||
| logMessage(LogType::Info, "SDL window initiated."); | ||||||
|
|
||||||
| return sdlWindow; | ||||||
| } | ||||||
| } | ||||||
|
|
@@ -130,11 +132,11 @@ namespace segfault::application { | |||||
| } | ||||||
|
|
||||||
| void App::shutdown() { | ||||||
| if (mSdlWindow == nullptr) { | ||||||
| logMessage(LogType::Error, "Invalid application state, cannot shutdown."); | ||||||
| return; | ||||||
| if (mSdlWindow == nullptr || mState == ModuleState::Shutdown) { | ||||||
| logMessage(LogType::Warn, "App already shutdowned."); | ||||||
| return; | ||||||
| } | ||||||
|
|
||||||
|
Comment on lines
134
to
+139
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Grammar issue and potential logic concern in shutdown guard.
✏️ Proposed fix (grammar only) void App::shutdown() {
if (mSdlWindow == nullptr || mState == ModuleState::Shutdown) {
- logMessage(LogType::Warn, "App already shutdowned.");
+ logMessage(LogType::Warn, "App already shut down.");
return;
}🤖 Prompt for AI Agents |
||||||
| SDL_DestroyWindow(mSdlWindow); | ||||||
| mSdlWindow = nullptr; | ||||||
| mState = ModuleState::Shutdown; | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: kimkulling/Segfault
Length of output: 100
--shaderis marked required while also given a default (conflicting CLI contract).At Line 51,
required=Truemakesdefault='./'effectively unused. Either removerequired=Trueto keep the default as fallback, or keeprequired=Trueand remove the default. No callsites in the repository were found that invoke this script, so the fix should maintain intended behavior for external callers.Suggested diff (keep backward-compatible default behavior)
📝 Committable suggestion
🤖 Prompt for AI Agents