Slang shaders for push constants sample

This commit is contained in:
Sascha Willems 2025-03-28 17:43:10 +01:00
parent 880b48485f
commit 22ae3726e6
2 changed files with 54 additions and 0 deletions

View 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);
}