f275f4690b
* Examples: Initial ImGui 1.85 integration example. * Attempt to load and compile shaders. * ImGUI integration done with some workarounds. * ImGUI integration: Cleanup example. * refactor tests->example_imgui Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
28 lines
467 B
HLSL
28 lines
467 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;
|
|
};
|
|
|
|
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;
|
|
}
|