Atlas - tri_color.vert.hlsl

Home / ext / SDL / src / render / gpu / shaders Lines: 1 | Size: 416 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1cbuffer Context : register(b0, space1) { 2 float4x4 mvp; 3}; 4 5struct VSInput { 6 float2 a_position : POSITION; 7 float4 a_color : COLOR0; 8}; 9 10struct VSOutput { 11 float4 v_color : COLOR0; 12 float4 gl_Position : SV_POSITION; 13}; 14 15VSOutput main(VSInput input) { 16 VSOutput output; 17 output.gl_Position = mul(mvp, float4(input.a_position, 0.0, 1.0)); 18 output.v_color = input.a_color; 19 return output; 20} 21
[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.