Danbias/Code/OysterGraphics/Shader/Passes/2D/Header.hlsli

23 lines
318 B
HLSL
Raw Normal View History

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)
{
float3 Color;
};
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);