VertexPositionTextureColor.cs 478 B

12345678910111213141516171819
  1. using System.Numerics;
  2. using Veldrid;
  3. namespace TextRender
  4. {
  5. internal struct VertexPositionTextureColor
  6. {
  7. public const uint SizeInBytes = 32;
  8. public Vector2 Position;
  9. public Vector2 TexCoords;
  10. public Vector4 Color;
  11. public VertexPositionTextureColor(Vector2 position, Vector2 tex, RgbaFloat color)
  12. {
  13. Position = position;
  14. TexCoords = tex;
  15. Color = color.ToVector4();
  16. }
  17. }
  18. }