summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
commit30f41c02aec763d32e62351452da9ef582bc3472 (patch)
tree6bec3f65bfdcbf7f1a631da21a6d613bef5db2fa /contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl
parent452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 (diff)
Move contrib libraries to contrib repo
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl')
-rw-r--r--contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl38
1 files changed, 0 insertions, 38 deletions
diff --git a/contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl b/contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl
deleted file mode 100644
index 63e5172..0000000
--- a/contrib/SDL-3.2.8/src/render/direct3d11/D3D11_VertexShader.hlsl
+++ /dev/null
@@ -1,38 +0,0 @@
1#pragma pack_matrix( row_major )
2
3cbuffer VertexShaderConstants : register(b0)
4{
5 matrix model;
6 matrix projectionAndView;
7};
8
9struct VertexShaderInput
10{
11 float3 pos : POSITION;
12 float2 tex : TEXCOORD0;
13 float4 color : COLOR0;
14};
15
16struct VertexShaderOutput
17{
18 float4 pos : SV_POSITION;
19 float2 tex : TEXCOORD0;
20 float4 color : COLOR0;
21};
22
23VertexShaderOutput main(VertexShaderInput input)
24{
25 VertexShaderOutput output;
26 float4 pos = float4(input.pos, 1.0f);
27
28 // Transform the vertex position into projected space.
29 pos = mul(pos, model);
30 pos = mul(pos, projectionAndView);
31 output.pos = pos;
32
33 // Pass through texture coordinates and color values without transformation
34 output.tex = input.tex;
35 output.color = input.color;
36
37 return output;
38}