struct VertexIn { float3 position : POSITION; }; struct VertexOut { float4 position : SV_POSITION; }; struct PixelOut { float4 color : SV_TARGET; }; VertexOut vs(VertexIn vin) { VertexOut vout; vout.position = float4(vin.position, 1.0f); return vout; } PixelOut ps(VertexOut vout) { PixelOut pixel; pixel.color = float4(0.9f, 0.2f, 0.9f, 1.0f); return pixel; }