18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 22:34:58 +01:00

include shader files in project

This commit is contained in:
WLs50
2025-04-05 12:00:20 +02:00
parent 0882652b2a
commit 671b674f36
30 changed files with 1894 additions and 0 deletions

18
manul/shaders/copy.hlsl Normal file
View File

@@ -0,0 +1,18 @@
struct VertexOutput {
float2 m_Position : Position;
float4 m_PositionSV : SV_Position;
};
struct PixelOutput {
float4 m_Output : SV_Target0;
};
sampler source_sampler : register(s0);
Texture2D source : register(t0);
PixelOutput main(VertexOutput ps_in) {
PixelOutput result;
result.m_Output = source.Sample(source_sampler, ps_in.m_Position);
return result;
}