add D3D11 project

This commit is contained in:
2025-11-19 09:43:09 +01:00
parent 9134d2dc40
commit bff01f5adb
36 changed files with 2779 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
cbuffer MatrixBuffer
{
matrix WorldViewProjectionMatrix;
//float4 TilingOffset;
};
struct VertexInput
{
float4 position : POSITION;
float2 uv : TEXCOORD;
};
struct VertexOutput
{
float4 position : SV_POSITION;
float2 uv : TEXCOORD;
};
VertexOutput main(VertexInput INPUT)
{
VertexOutput OUTPUT;
OUTPUT.position = mul(INPUT.position, WorldViewProjectionMatrix);
OUTPUT.uv = INPUT.uv * float2(1.0f, 1.0f) + float2(0.0f, 0.0f); // uv * tiling + offset
return OUTPUT;
}