2014-02-07 11:09:59 +01:00
|
|
|
struct Vertex2DIn
|
|
|
|
{
|
|
|
|
float2 Pos : Position;
|
|
|
|
};
|
|
|
|
|
2014-02-12 09:24:37 +01:00
|
|
|
cbuffer EveryObject2D : register(b0)
|
2014-02-07 11:09:59 +01:00
|
|
|
{
|
|
|
|
float4x4 Translation;
|
|
|
|
};
|
|
|
|
|
2014-02-12 09:24:37 +01:00
|
|
|
cbuffer ColorData : register(b0)
|
|
|
|
{
|
2014-02-17 13:05:35 +01:00
|
|
|
float4 Color;
|
2014-02-12 09:24:37 +01:00
|
|
|
};
|
|
|
|
|
2014-02-07 11:09:59 +01:00
|
|
|
struct Pixel2DIn
|
|
|
|
{
|
|
|
|
float4 Pos : SV_Position;
|
|
|
|
float2 Uv : TEXCOORD;
|
|
|
|
};
|
|
|
|
|
|
|
|
Texture2D Material : register(t0);
|
|
|
|
SamplerState LinearSampler : register(s0);
|