diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 17:07:54 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 17:07:54 +0200 |
| commit | 06398a7a176e123506de6e8851866a8bec0b3427 (patch) | |
| tree | 7167ef4818f2c224840122961882efb5ec26c80b /assets/shaders/textured_quad.slang | |
| parent | 1c85c2ecaa826afd8bf80f93741cf1b2deba5798 (diff) | |
[chore]: cleanup shaders
Diffstat (limited to 'assets/shaders/textured_quad.slang')
| -rw-r--r-- | assets/shaders/textured_quad.slang | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/assets/shaders/textured_quad.slang b/assets/shaders/textured_quad.slang index 52d46ed..b72db81 100644 --- a/assets/shaders/textured_quad.slang +++ b/assets/shaders/textured_quad.slang @@ -1,14 +1,8 @@ -struct VSInput -{ - float2 position : POSITION; - float2 texCoord : TEXCOORD0; -}; +// Full-screen textured quad: samples one 2D texture straight to the target. +// Used to blit an off-screen colour buffer to the swapchain. -struct VSOutput -{ - float4 position : SV_Position; - float2 texCoord : TEXCOORD0; -}; +struct VSInput { float2 position : POSITION; float2 texCoord : TEXCOORD0; }; +struct VSOutput { float4 position : SV_Position; float2 texCoord : TEXCOORD0; }; [shader("vertex")] VSOutput vertexMain(VSInput input) |
