Atlas - linepoint.vert.hlsl
Home / ext / SDL / src / render / gpu / shaders Lines: 1 | Size: 546 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1cbuffer Context : register(b0, space1) { 2 float4x4 mvp; // Model-View-Projection matrix 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 [[vk::builtin("PointSize")]] 14 float gl_PointSize : PSIZE; 15}; 16 17VSOutput main(VSInput input) { 18 VSOutput output; 19 output.gl_Position = mul(mvp, float4(input.a_position, 0.0, 1.0)); 20 output.gl_PointSize = 1.0f; 21 output.v_color = input.a_color; 22 return output; 23} 24[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.