23 lines
318 B
HLSL
23 lines
318 B
HLSL
struct Vertex2DIn
|
|
{
|
|
float2 Pos : Position;
|
|
};
|
|
|
|
cbuffer EveryObject2D : register(b0)
|
|
{
|
|
float4x4 Translation;
|
|
};
|
|
|
|
cbuffer ColorData : register(b0)
|
|
{
|
|
float4 Color;
|
|
};
|
|
|
|
struct Pixel2DIn
|
|
{
|
|
float4 Pos : SV_Position;
|
|
float2 Uv : TEXCOORD;
|
|
};
|
|
|
|
Texture2D Material : register(t0);
|
|
SamplerState LinearSampler : register(s0); |