From 6c8ae19be66cee247980a48e736a4e05d14de179 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Dec 2025 16:39:36 -0800 Subject: Immediate-mode renderer, triangle demo, shader compilation in cmake, Agility SDK --- dxg/shaders/imm.hlsl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dxg/shaders/imm.hlsl (limited to 'dxg/shaders/imm.hlsl') diff --git a/dxg/shaders/imm.hlsl b/dxg/shaders/imm.hlsl new file mode 100644 index 0000000..da6b1f6 --- /dev/null +++ b/dxg/shaders/imm.hlsl @@ -0,0 +1,23 @@ +struct VertexIn { + float3 position : POSITION; +}; + +struct VertexOut { + float4 position : SV_POSITION; +}; + +struct PixelOut { + float4 color : SV_TARGET; +}; + +VertexOut vs(VertexIn vin) { + VertexOut vout; + vout.position = float4(vin.position, 1.0f); + return vout; +} + +PixelOut ps(VertexOut vout) { + PixelOut pixel; + pixel.color = float4(0.9f, 0.2f, 0.9f, 1.0f); + return pixel; +} -- cgit v1.2.3