Caching descriptor set updates

This commit is contained in:
Dynamitos
2024-05-29 10:40:35 +02:00
parent e0961bce24
commit 4b6022237b
15 changed files with 405 additions and 315 deletions
+7
View File
@@ -48,6 +48,13 @@ float4 clipToView(float4 clip)
return view;
}
float4 clipToWorld(float4 clip)
{
float4 view = clipToView(clip);
return viewToWorld(view);
}
float4 screenToView(float4 screen)
{
float2 texCoord = screen.xy / pViewParams.screenDimensions;
+4
View File
@@ -52,6 +52,10 @@ struct PointLight : ILightEnv
}
return result;
}
float3 getPosition()
{
return position_WS.xyz;
}
};
struct LightEnv