added mesh rendering

This commit is contained in:
2025-05-28 14:36:57 +03:00
parent 60fa98e240
commit b83078553e
53 changed files with 1436 additions and 363 deletions

View File

@@ -0,0 +1,24 @@
#include "mesh_shared.slang"
struct VertexInput
{
float3 position: POSITION;
float2 uv: TEXCOORD0;
};
[[vk::binding(0)]]
cbuffer CameraInfo
{
float4x4 projection;
};
VertexOutput main(
VertexInput input,
uniform PushConstants constants,
)
{
VertexOutput output;
output.position = mul(projection, mul(constants.modelMatrix, float4(input.position,1)));
output.uv = input.uv;
return output;
}