Add slang shaders for additional samples

This commit is contained in:
Sascha Willems 2025-05-03 17:33:16 +02:00
parent e0bff55eab
commit 0e975064d9
7 changed files with 418 additions and 0 deletions

View file

@ -0,0 +1,30 @@
// Copyright 2020 Google LLC
struct VSInput
{
float3 Pos;
float2 UV;
};
struct VSOutput
{
float4 Pos : SV_POSITION;
float2 UV;
};
Sampler2D samplerColor;
[shader("vertex")]
VSOutput vertexMain(VSInput input)
{
VSOutput output;
output.UV = input.UV;
output.Pos = float4(input.Pos, 1.0f);
return output;
}
[shader("fragment")]
float4 fragmentMain(VSOutput input)
{
return samplerColor.Sample(input.UV);
}