KhronosGroup / KhronosGroup/glslang
HLSL Raytracing shader library support
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 989
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
It would be nice to be able to compile shader library like in [DirectXShaderCompiler](https://github.com/microsoft/DirectXShaderCompiler).
Or at least have a way for enumeration entrypoints from library.
For get:
```
stage rgen, entry "ray_gen"
stage rmiss, entry "miss"
stage rchit, entry "closest"
```
From:
```
[shader("raygeneration")]
void ray_gen()
[shader("miss")]
void miss(inout RayPayload payload)
[shader("closesthit")]
void closest(inout RayPayload payload, in BuiltInTriangleIntersectionAttributes attribs)
```
Contributor guide
Research direction
The issue names no files or tests. Start by reviewing glslang's HLSL front end and comparing the requested shader-library behavior with DirectXShaderCompiler. Done means supporting shader-library compilation or enumerating the raytracing entry points shown in the examples.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100