2022-01-18 04:39:23 +00:00
|
|
|
using MoonWorks.Math;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
namespace MoonWorksComputeSpriteBatch
|
|
|
|
{
|
|
|
|
// SPIR-V requires vectors to not cross 16-byte boundaries
|
2022-01-18 05:03:02 +00:00
|
|
|
[StructLayout(LayoutKind.Explicit)]
|
2022-01-18 04:39:23 +00:00
|
|
|
public struct VertexPositionTexcoord
|
|
|
|
{
|
|
|
|
[FieldOffset(0)]
|
|
|
|
public Vector3 position;
|
|
|
|
[FieldOffset(16)]
|
|
|
|
public Vector2 texcoord;
|
2022-01-18 05:03:02 +00:00
|
|
|
[FieldOffset(32)]
|
|
|
|
public Vector4 color;
|
2022-01-18 04:39:23 +00:00
|
|
|
}
|
|
|
|
}
|