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

shader-slang / slang-rhi / 20819876139
21%

Build:
DEFAULT BRANCH: main
Ran 08 Jan 2026 02:19PM 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

08 Jan 2026 02:17PM UTC coverage: 20.275% (-2.4%) from 22.723%
20819876139

push

github

web-flow
Add final ray tracing tests (#614)

* Add tests for AcceptHitAndEndSearch and IgnoreHit

* Add tests for querying ray attributes in closesthit

Add tests for these intrinsics:

- HitKind
- RayTMin
- RayTCurrent
- RayFlags
- GeometryIndex
- HitTriangleVertexPosition
- RayCurrentTime
- InstanceID
- InstanceIndex

* Add HitObject.GetRayDesc/GetInstanceID tests

* Add test for HitObject.GetClusterID

* Add test for HitObject.SetShaderTableIndex

* Add tests for HitObject SBT access intrinsics and backend support

Add tests for HitObject.LoadLocalRootTableConstant (HLSL/CUDA) and
HitObject.GetShaderRecordBufferHandle (Vulkan/SPIRV).

Changes:
- Added two new ray tracing tests that validate SBT data access
- Updated OptiX backend to apply ShaderRecordOverwrite for miss, hit
  group, and callable shaders
- Updated Vulkan backend to apply ShaderRecordOverwrite and use strides
  when dispatching rays

* Add test for CallShader

* Skip SetShaderTableIndex test when OptiX is older than 9.0

* Fix issue where ray-tracing-hitobject-get-shader-record-buffer-handle only read bottom bits of handle

* Forgot to run pre-commit

* fix(d3d12): Calculate shader table record sizes from overwrites

The D3D12 shader table implementation was using fixed record sizes
(D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES) for all shader types, which
caused buffer overruns when ShaderRecordOverwrite data extended beyond
the shader identifier.

Changes:
- Added per-shader-type stride members to ShaderTableImpl
- Calculate record sizes by examining overwrites for each shader type
- Use explicit base index calculation for different shader sections
- Update dispatch ray descriptions to use calculated strides
- Align all record sizes to D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT

This fixes a segfault in ray-tracing-hitobject-query-invoke-hit-ch.d3d12
where hit group shader records with local root arguments (SBT overwrites)
were overflowing the allocated buffer.

* Fix Vulkan raygen shader bindin... (continued)

2871 of 18000 branches covered (15.95%)

Branch coverage included in aggregate %.

47 of 226 new or added lines in 5 files covered. (20.8%)

375 existing lines in 8 files now uncovered.

9582 of 43420 relevant lines covered (22.07%)

73.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
1.76
0.0% src/vulkan/vk-command.cpp
8
1.97
src/d3d12/d3d12-command.cpp
22
36.58
4.92% src/cuda/optix-api-impl.cpp
60
0.0
src/d3d12/d3d12-shader-table.cpp
84
0.0
0.0% src/vulkan/vk-shader-table.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
29.59
0.3% src/shader-object.h
1
9.52
-0.48% src/debug-layer/debug-shader-object.h
2
0.0
0.0% src/vulkan/vk-shader-table.cpp
2
36.58
4.92% src/cuda/optix-api-impl.cpp
22
32.68
-3.29% src/debug-layer/debug-shader-object.cpp
77
0.0
0.0% src/vulkan/vk-acceleration-structure.cpp
133
30.69
-12.37% include/slang-rhi.h
137
27.42
0.36% src/shader-object.cpp
Jobs
ID Job ID Ran Files Coverage
1 macos-aarch64 - 20819876139.1 08 Jan 2026 03:25PM UTC 157
7.02
GitHub Action Run
2 windows-x86_64 - 20819876139.2 08 Jan 2026 02:25PM UTC 216
20.7
GitHub Action Run
3 linux-x86_64 - 20819876139.3 08 Jan 2026 02:19PM UTC 166
23.44
GitHub Action Run
Source Files on build 20819876139
  • Tree
  • List 239
  • Changed 112
  • Source Changed 3
  • Coverage Changed 112
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20819876139
  • 4ba2d4b9 on github
  • Prev Build on main (#20819187860)
  • Next Build on main (#20824083746)
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

© 2026 Coveralls, Inc