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

16 lines
410 B
HLSL

struct VertexOutput
{
float4 pos : SV_POSITION;
float2 uv : TEXCOORD0;
float4 col : COLOR0;
};
Texture2D texture0 : register(t0);
SamplerState sampler0 : register(s0);
[RootSignature("RootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT), CBV(b0), DescriptorTable(SRV(t0)), DescriptorTable(Sampler(s0))")]
float4 main(VertexOutput input) : SV_TARGET
{
return input.col * texture0.Sample(sampler0, input.uv);
}