• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shader-slang / slang-rhi / 19445294570
23%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2025 09:36PM UTC
Jobs 3
Files 239
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Nov 2025 09:33PM UTC coverage: 31.358% (-1.2%) from 32.512%
19445294570

push

github

web-flow
Feature/example triangle (#578)

* Add files via upload

Update Example-Triangle

* Add example for triangle rendering

Add example-triangle to render a simple triangle

Modified files:
- `CMakeLists.txt`: Added `example-triangle` target to build system.
- `example-triangle.cpp`:  Introduced new source file for the triangle example.

Summary:
- Added a new example, `example-triangle`, to demonstrate rendering a simple triangle using Slang and the RHI framework.
- Updated `CMakeLists.txt` to include the new example in the build process when `SLANG_RHI_BUILD_EXAMPLES` is enabled.
- Implemented `ExampleTriangle` class:
  - Defined vertex structure and data for a triangle with RGB colors.
  - Set up a rendering pipeline with vertex and fragment shaders.
  - Created dynamic rendering logic with a cycling background color.
- Included inline shader source code for vertex and fragment processing.
- Ensured proper lifecycle management with `init`, `draw`, `update`, and `shutdown` methods.

* Update example-triangle.cpp

* fix Clang-Format in example-triangle.cpp (solving pre-commit issue format)

---------

Co-authored-by: Simon Kallweit <64953474+skallweitNV@users.noreply.github.com>

4129 of 17164 branches covered (24.06%)

Branch coverage included in aggregate %.

14398 of 41919 relevant lines covered (34.35%)

85.97 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
41.8
7.92% src/command-list.h
2
0.0
0.0% include/slang-rhi/cuda-driver-api.h
3
0.0
0.0% src/debug-layer/debug-command-encoder.h
6
67.03
-4.4% src/cuda/cuda-shader-object.cpp
6
51.82
-0.54% src/cuda-driver-api.cpp
7
30.61
-4.9% src/shader-object.h
8
0.0
0.0% src/cpu/cpu-shader-object.cpp
8
0.0
0.0% src/d3d11/d3d11-shader-object.cpp
10
19.82
-11.89% src/cuda/cuda-pipeline.cpp
11
73.24
-0.09% src/d3d12/d3d12-shader-object-layout.h
16
73.91
-8.9% src/cuda/cuda-shader-object-layout.cpp
20
34.25
-9.16% src/device.h
20
0.0
0.0% src/d3d11/d3d11-shader-object-layout.h
21
27.27
-1.05% src/command-list.cpp
25
18.35
-0.8% src/debug-layer/debug-device.cpp
32
72.04
-4.39% src/cuda/cuda-nvrtc.cpp
39
10.86
-2.53% src/debug-layer/debug-command-encoder.cpp
46
14.13
-4.01% src/command-buffer.cpp
48
26.69
-1.74% src/device.cpp
83
0.81
-0.49% src/cpu/cpu-command.cpp
92
63.22
-11.74% src/cuda/cuda-device.cpp
103
32.13
-14.75% include/slang-rhi.h
112
68.51
-0.37% src/d3d12/d3d12-shader-object-layout.cpp
122
37.17
-8.14% src/cuda/cuda-command.cpp
139
0.19
-0.0% src/d3d11/d3d11-command.cpp
146
67.73
-3.75% src/vulkan/vk-device.cpp
160
1.23
-0.49% src/wgpu/wgpu-command.cpp
191
59.09
-0.15% src/d3d12/d3d12-device.cpp
229
29.9
-0.61% src/d3d12/d3d12-command.cpp
233
37.66
3.39% src/vulkan/vk-command.cpp
315
36.79
-2.31% src/cuda/optix-api-impl.cpp
Jobs
ID Job ID Ran Files Coverage
1 windows-x86_64 - 19445294570.1 17 Nov 2025 09:41PM UTC 216
33.0
GitHub Action Run
2 macos-aarch64 - 19445294570.2 17 Nov 2025 09:37PM UTC 157
7.11
GitHub Action Run
3 linux-x86_64 - 19445294570.3 17 Nov 2025 09:36PM UTC 166
24.53
GitHub Action Run
Source Files on build 19445294570
  • Tree
  • List 239
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19445294570
  • d9ff98bc on github
  • Prev Build on main (#19423610479)
  • Next Build on main (#19463473812)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc