prototype for spirv linking

This commit is contained in:
2026-04-30 22:03:31 +03:00
parent 9569555347
commit 386c2fc045
10 changed files with 120 additions and 34 deletions

View File

@@ -3,12 +3,12 @@
struct MeshPayload
{
float3 m_vColor;
}
struct RayPayload
{
float3 m_vOrigin;
float3 m_vDirection;
float3 m_vColor;
};
RAY
@@ -23,9 +23,8 @@ RAY
void rayMain()
{
RayPayload p = {};
RunShaderResult_t<MeshPayload> m = RunShader<MeshPayload, RayPayload>(0, p);
m.val.m_vColor;
printf("%f\n", m.val.m_vColor.x);
CallShader<RayPayload>(0, p);
printf("%f\n", p.m_vColor.x);
/*
uint2 pixel = DispatchRaysIndex().xy;