Files
Preben Eriksen 0d3d12cc22 PE: ImGui Docking Sample. (#485)
* PE: ImGui Docking Sample.

* PE: Added new files to CMakeLists.txt.

* PE: WickedEngine.sln VS2022 version.

* PE:

* PE: Removed some warnings.
2022-07-10 12:39:59 +02:00

29 lines
597 B
HLSL

struct VertexInput
{
float2 pos : POSITION;
float2 uv : TEXCOORD0;
float4 col : COLOR0;
};
struct VertexOutput
{
float4 pos : SV_POSITION;
float2 uv : TEXCOORD0;
float4 col : COLOR0;
};
cbuffer vertexBuffer : register(b0)
{
float4x4 ProjectionMatrix;
};
[RootSignature("RootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT), CBV(b0), DescriptorTable(SRV(t0)), DescriptorTable(Sampler(s0))")]
VertexOutput main(VertexInput input)
{
VertexOutput output;
output.pos = mul(ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));
output.uv = input.uv;
output.col = input.col;
return output;
}