Issue 90129
Summary [HLSL][DirectX] Compile a runnable shader from clang
Labels HLSL
Assignees
Reporter damyanp
    This is a milestone on the way to getting full HLSL support in Clang.  

For this milestone we need to be able to compile a simple compute shader such that the resulting DXBC container can pass validation and be signed by the DXC validator and can therefore be executed on a non-developer mode Windows desktop PC. The shader compiler binary should come from some kind of nightly build, rather than building locally.

[Sample shader](https://godbolt.org/z/TGKKbEabb)

```hlsl
RWBuffer<int> In;
RWBuffer<int> Out;

[numthreads(8,1,1)]
void main(uint GI : SV_GroupIndex) {
  Out[GI] = In[GI] * In[GI];
}
```

# Work

The work items listed here are expected to be _fully_ completed - even if that means doing more than the bare minimum required to pass this milestone.

> For now, just filling this in with notes, later turn into links to the real issues
 
- [ ] #68006 (resources)
- [ ] #88774 (dx.version metadata)
- [ ] #88778 (generate ISG1, OSG1, PSV0 container parts)
- [ ] Build a demo app that executes this shader
- [ ] Set up nightly build that stores artifacts
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to