diff options
Diffstat (limited to 'dxg/shaders/imm.hlsl')
| -rw-r--r-- | dxg/shaders/imm.hlsl | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
| 1 | struct VertexIn { | ||
| 2 | float3 position : POSITION; | ||
| 3 | }; | ||
| 4 | |||
| 5 | struct VertexOut { | ||
| 6 | float4 position : SV_POSITION; | ||
| 7 | }; | ||
| 8 | |||
| 9 | struct PixelOut { | ||
| 10 | float4 color : SV_TARGET; | ||
| 11 | }; | ||
| 12 | |||
| 13 | VertexOut vs(VertexIn vin) { | ||
| 14 | VertexOut vout; | ||
| 15 | vout.position = float4(vin.position, 1.0f); | ||
| 16 | return vout; | ||
| 17 | } | ||
| 18 | |||
| 19 | PixelOut ps(VertexOut vout) { | ||
| 20 | PixelOut pixel; | ||
| 21 | pixel.color = float4(0.9f, 0.2f, 0.9f, 1.0f); | ||
| 22 | return pixel; | ||
| 23 | } | ||
