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
15
shaders/hlsl/meshshader/meshshader.frag
Normal file
15
shaders/hlsl/meshshader/meshshader.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* Copyright (c) 2023, Sascha Willems
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
struct VSOutput
|
||||
{
|
||||
[[vk::location(0)]] float4 color : COLOR0;
|
||||
};
|
||||
|
||||
float4 main(VSOutput input) : SV_TARGET
|
||||
{
|
||||
return float4(input.color);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue