Added HLSL shaders for mesh shading sample
This commit is contained in:
parent
8a686e0380
commit
18012268ed
6 changed files with 84 additions and 0 deletions
19
shaders/hlsl/meshshader/meshshader.task
Normal file
19
shaders/hlsl/meshshader/meshshader.task
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* Copyright (c) 2023, Sascha Willems
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
struct DummyPayLoad
|
||||
{
|
||||
uint dummyData;
|
||||
};
|
||||
|
||||
// We don't use pay loads in this sample, but the fn call requires one
|
||||
groupshared DummyPayLoad dummyPayLoad;
|
||||
|
||||
[numthreads(1,1,1)]
|
||||
void main()
|
||||
{
|
||||
DispatchMesh(3, 1, 1, dummyPayLoad);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue