Atlas - overlay.vert.hlsl

Home / ext / SDL / test / testgpu Lines: 1 | Size: 474 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1 2#include "overlay.hlsli" 3 4static const uint verts[6] = {0, 1, 2, 0, 2, 3}; 5static const float2 uvs[4] = { 6 {0.0f, 0.0f}, 7 {1.0f, 0.0f}, 8 {1.0f, 1.0f}, 9 {0.0f, 1.0f} 10}; 11static const float2 pos[4] = { 12 {-1.0f, 1.0f}, 13 {1.0f, 1.0f}, 14 {1.0f, -1.0f}, 15 {-1.0f, -1.0f} 16}; 17 18VSOutput main(uint id : SV_VertexID) 19{ 20 VSOutput output; 21 uint vert = verts[id]; 22 output.uv = uvs[vert]; 23 output.pos = float4(pos[vert], 0.0f, 1.0f); 24 return output; 25} 26
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.