Slang shaders for push constants sample
This commit is contained in:
parent
880b48485f
commit
22ae3726e6
2 changed files with 54 additions and 0 deletions
16
shaders/slang/pushconstants/pushconstants.frag.slang
Normal file
16
shaders/slang/pushconstants/pushconstants.frag.slang
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* Copyright (c) 2025, Sascha Willems
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
struct VSOutput
|
||||
{
|
||||
float3 Color;
|
||||
};
|
||||
|
||||
[shader("fragment")]
|
||||
float4 main(VSOutput input) : SV_TARGET
|
||||
{
|
||||
return float4(input.Color, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue