C++ examples for the Vulkan graphics API
This report summarizes scanner evidence for SaschaWillems/Vulkan, a GLSL project with 12,202 GitHub stars. SynthScan examined 186,445 lines of code across 1277 source files, recording 429 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 422 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 429 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 429 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apple/examples.h | 21 | * from the Preprocessor Macros compiler setting in the MoltenVK examples project. | COMMENT |
| LOW | apple/examples.h | 41 | #endif | COMMENT |
| LOW | apple/examples.h | 61 | # include "../examples/pushconstants/pushconstants.cpp" | COMMENT |
| LOW | apple/examples.h | 81 | #ifdef MVK_texturecubemaparray | COMMENT |
| LOW | apple/examples.h | 101 | #ifdef MVK_particlesystem | COMMENT |
| LOW | apple/examples.h | 121 | # include "../examples/gltfskinning/gltfskinning.cpp" | COMMENT |
| LOW | apple/examples.h | 141 | #endif | COMMENT |
| LOW | apple/examples.h | 161 | COMMENT | |
| LOW | apple/examples.h | 181 | #endif | COMMENT |
| LOW | apple/examples.h | 201 | COMMENT | |
| LOW | apple/examples.h | 221 | # include "../examples/deferred/deferred.cpp" | COMMENT |
| LOW | apple/examples.h | 241 | # include "../examples/computeshader/computeshader.cpp" | COMMENT |
| LOW | apple/examples.h | 261 | #ifdef MVK_computecullandlod | COMMENT |
| LOW | apple/examples.h | 281 | // Not supported on iOS Simulator which does not support tessellation shaders. | COMMENT |
| LOW | apple/examples.h | 301 | # include "../examples/raytracingbasic/raytracingbasic.cpp" | COMMENT |
| LOW | apple/examples.h | 321 | # include "../examples/raytracingcallable/raytracingcallable.cpp" | COMMENT |
| LOW | apple/examples.h | 341 | # include "../examples/raytracingpositionfetch/raytracingpositionfetch.cpp" | COMMENT |
| LOW | apple/examples.h | 361 | COMMENT | |
| LOW | apple/examples.h | 381 | #ifdef MVK_conservativeraster | COMMENT |
| LOW | apple/examples.h | 401 | #endif | COMMENT |
| LOW | apple/examples.h | 421 | COMMENT | |
| LOW | apple/examples.h | 441 | #ifdef MVK_graphicspipelinelibrary | COMMENT |
| LOW | apple/examples.h | 461 | #ifdef MVK_descriptorbuffer | COMMENT |
| LOW | apple/examples.h | 481 | #endif | COMMENT |
| LOW | apple/examples.h | 501 | # include "../examples/bloom/bloom.cpp" | COMMENT |
| LOW | apple/examples.h | 521 | # include "../examples/vulkanscene/vulkanscene.cpp" | COMMENT |
| LOW | openharmony/computeshader/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/vulkanscene/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/offscreen/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …armony/sphericalenvmapping/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/pbrbasic/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/shadowmapping/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/subpasses/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …harmony/descriptorindexing/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/computenbody/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/screenshot/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …mony/deferredmultisampling/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …enharmony/inputattachments/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/texturearray/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/textoverlay/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/parallaxmapping/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …ony/negativeviewportheight/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/descriptorsets/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …harmony/gltfscenerendering/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/pbribl/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/instancing/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/pushconstants/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/deferred/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …rmony/dynamicuniformbuffer/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/radialblur/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/multithreading/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/imgui/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/hdr/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/computeheadless/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/tessellation/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …armony/terraintessellation/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/triangle/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | …harmony/pipelinestatistics/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/pipelines/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| LOW | openharmony/displacement/entry/obfuscation-rules.txt | 1 | # Define project specific obfuscation rules here. | COMMENT |
| 348 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/screenshot/screenshot.cpp | 314 | // Note: Not complete, only contains most common and basic BGR surface formats for demonstration purposes | COMMENT |
| MEDIUM | …ynamicrenderingsecondary/dynamicrenderingsecondary.cpp | 309 | // This is just for demonstration purposes, for such a simple use-case this won't improve performance (and most likel | COMMENT |
| MEDIUM | examples/trianglevulkan13/trianglevulkan13.cpp | 234 | // We do this for demonstration purposes, a triangle doesn't require indices to be rendered (because of the 1:1 mappin | COMMENT |
| MEDIUM | external/imgui/imgui_widgets.cpp | 4964 | // Tip: pass an empty label (e.g. "##dummy") then you can use the space to draw other text or image. | COMMENT |
| LOW | external/imgui/imgui.cpp | 407 | - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/variablerateshading/variablerateshading.cpp | 273 | // We need to check if the requested format for the shading rate attachment supports the required flag | COMMENT |
| LOW⚡ | external/imgui/imgui.cpp | 2043 | if (StepNo == 0) // Step 0: the clipper let you process the first element, regardless of it being visible or not, so | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2051 | if (StepNo == 1) // Step 1: the clipper infer height from first element, calculate the actual range of elements to d | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2062 | if (StepNo == 2) // Step 2: dummy step only required if an explicit items_height was passed to constructor or Begin( | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2068 | if (StepNo == 3) // Step 3: the clipper validate that we have reached the expected Y position (corresponding to elem | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | external/imgui/imgui.cpp | 2043 | if (StepNo == 0) // Step 0: the clipper let you process the first element, regardless of it being visible or not, so | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2051 | if (StepNo == 1) // Step 1: the clipper infer height from first element, calculate the actual range of elements to d | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2062 | if (StepNo == 2) // Step 2: dummy step only required if an explicit items_height was passed to constructor or Begin( | CODE |
| LOW⚡ | external/imgui/imgui.cpp | 2068 | if (StepNo == 3) // Step 3: the clipper validate that we have reached the expected Y position (corresponding to elem | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | shaders/slang/compileshaders.py | 5 | CODE | |
| LOW | shaders/slang/compileshaders.py | 9 | CODE | |
| LOW | shaders/glsl/compileshaders.py | 5 | CODE | |
| LOW | shaders/hlsl/compileshaders.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | shaders/slang/compileshaders.py | 133 | print("Error %s", res) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | external/imgui/imgui_demo.cpp | 3191 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid | CODE |
| LOW | external/imgui/imgui_demo.cpp | 3191 | ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid | CODE |