SpineShadersStructs.h 629 B

12345678910111213141516171819202122232425262728
  1. #ifndef SpineShadersStructs_h
  2. #define SpineShadersStructs_h
  3. #include <simd/simd.h>
  4. typedef enum SpineVertexInputIndex {
  5. SpineVertexInputIndexVertices = 0,
  6. SpineVertexInputIndexTransform = 1,
  7. SpineVertexInputIndexViewportSize = 2,
  8. } SpineVertexInputIndex;
  9. typedef enum SpineTextureIndex {
  10. SpineTextureIndexBaseColor = 0,
  11. } SpineTextureIndex;
  12. typedef struct {
  13. vector_float2 position;
  14. vector_float4 color;
  15. vector_float2 uv;
  16. } SpineVertex;
  17. typedef struct {
  18. vector_float2 translation;
  19. vector_float2 scale;
  20. vector_float2 offset;
  21. } SpineTransform;
  22. #endif /* SpineShadersStructs_h */