mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
29 lines
623 B
C
29 lines
623 B
C
#ifndef SpineShadersStructs_h
|
|
#define SpineShadersStructs_h
|
|
|
|
#include <simd/simd.h>
|
|
|
|
typedef enum SpineVertexInputIndex {
|
|
SpineVertexInputIndexVertices = 0,
|
|
SpineVertexInputIndexTransform = 1,
|
|
SpineVertexInputIndexViewportSize = 2,
|
|
} SpineVertexInputIndex;
|
|
|
|
typedef enum SpineTextureIndex {
|
|
SpineTextureIndexBaseColor = 0,
|
|
} SpineTextureIndex;
|
|
|
|
typedef struct {
|
|
simd_float2 position;
|
|
simd_float4 color;
|
|
simd_float2 uv;
|
|
} SpineVertex;
|
|
|
|
typedef struct {
|
|
vector_float2 translation;
|
|
vector_float2 scale;
|
|
vector_float2 offset;
|
|
} SpineTransform;
|
|
|
|
#endif /* SpineShadersStructs_h */
|