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

shader-slang / slang-rhi / 19232492817
23%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2025 01:03PM UTC
Jobs 3
Files 238
Run time 45min
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

10 Nov 2025 01:00PM UTC coverage: 31.623% (+0.02%) from 31.606%
19232492817

push

github

web-flow
Unify functions for loading test shaders (#569)

* Unify shader loading functions into single loadProgram API

Replaced loadComputeProgram, loadGraphicsProgram, and loadShaderPrograms
with a single loadProgram function that:
- Accepts multiple entry points
- Makes reflection optional (nullptr skips linking for ray tracing)
- Accepts optional slang::ISession for precompiled modules

NOTE: We use a std::vector instead of a span for the `entryPointNames`
parameter so we can use braced initializers when specifying shader names.

Updated all call sites to use cleaner syntax:
  loadProgram(device, program, "module", {"computeMain"}, &reflection);

* Refactor shader loading API to separate linking from loading

Split loadProgram into two distinct functions:
- loadProgram: loads shader programs without linking (no reflection)
- loadAndLinkProgram: loads and links programs with reflection support

Both functions now have overloads that omit the slangSession parameter,
defaulting to nullptr for simpler call sites. Parameter order updated
to place outShaderProgram last for consistency.

Updated all test files to:
- Use loadProgram for tests without reflection needs
- Use loadAndLinkProgram for tests requiring reflection data
- Remove unused slangReflection variables
- Use simpler overloads without explicit session parameter

* clang-format

* Delete ray-tracing-common.cpp and inline launchPipeline

launchPipeline was the only function in ray-tracing-common.cpp. Inline
the function into ray-tracing-common.h and delete the basically empty
cpp file.

* Add single entry point overloads and document new functions

* fix missed single entry point call

* fix a few more single entry point calls

---------

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

4124 of 17036 branches covered (24.21%)

Branch coverage included in aggregate %.

14392 of 41517 relevant lines covered (34.67%)

86.69 hits per line

Jobs
ID Job ID Ran Files Coverage
2 macos-aarch64 - 19232492817.2 10 Nov 2025 01:06PM UTC 156
7.16
GitHub Action Run
3 linux-x86_64 - 19232492817.3 10 Nov 2025 01:03PM UTC 165
24.82
GitHub Action Run
1 windows-x86_64 - 19129176655.1 06 Nov 2025 08:23AM UTC 215
33.18
GitHub Action Run
Source Files on build 19232492817
  • Tree
  • List 238
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19232492817
  • 8325d366 on github
  • Prev Build on main (#19224031804)
  • Next Build on main (#19237289100)
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