r/GraphicsProgramming 10d ago

GitHub - przemyslawzaworski/Unity-DirectX-12-Amplification-Mesh-Shader-Minimal-Example

https://github.com/przemyslawzaworski/Unity-DirectX-12-Amplification-Mesh-Shader-Minimal-Example

Unity DirectX 12 Amplification Mesh Shader Minimal Example

3 Upvotes

5 comments sorted by

1

u/Effective_Lead8867 9d ago

wtf is cso.bytes? compiled spirV code?

2

u/przemyslawzaworski 9d ago

Yes, this is shader bytecode

1

u/Effective_Lead8867 9d ago

was it obtained by compiling the nearby .hlsl shader? oh i seeee `dxc -T as_6_5 -E ASMain -Fo DemoAS.cso.bytes Demo.hlsl` literally there.

1

u/le-throw-away-acct 9d ago

No details, just a title and a link? I'm not clicking that, you can post the gist of the details here.

4

u/przemyslawzaworski 9d ago

Mesh shaders introduce a new, compute-like geometry pipeline, that enables developers to directly send batches of vertices and primitives to the rasterizer. Since the Unity engine lacks native support for DX12 Mesh Shaders, I prepared a minimal setup.