Pass VK_NULL_HANDLE instead of nullptr for pipeline cache
This commit is contained in:
parent
5011d7afae
commit
e140095002
2 changed files with 2 additions and 2 deletions
|
|
@ -566,7 +566,7 @@ public:
|
||||||
rayPipelineInfo.pGroups = groups.data();
|
rayPipelineInfo.pGroups = groups.data();
|
||||||
rayPipelineInfo.maxRecursionDepth = 1;
|
rayPipelineInfo.maxRecursionDepth = 1;
|
||||||
rayPipelineInfo.layout = pipelineLayout;
|
rayPipelineInfo.layout = pipelineLayout;
|
||||||
VK_CHECK_RESULT(vkCreateRayTracingPipelinesNV(device, nullptr, 1, &rayPipelineInfo, nullptr, &pipeline));
|
VK_CHECK_RESULT(vkCreateRayTracingPipelinesNV(device, VK_NULL_HANDLE, 1, &rayPipelineInfo, nullptr, &pipeline));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -606,7 +606,7 @@ public:
|
||||||
rayPipelineInfo.pGroups = groups.data();
|
rayPipelineInfo.pGroups = groups.data();
|
||||||
rayPipelineInfo.maxRecursionDepth = 2;
|
rayPipelineInfo.maxRecursionDepth = 2;
|
||||||
rayPipelineInfo.layout = pipelineLayout;
|
rayPipelineInfo.layout = pipelineLayout;
|
||||||
VK_CHECK_RESULT(vkCreateRayTracingPipelinesNV(device, nullptr, 1, &rayPipelineInfo, nullptr, &pipeline));
|
VK_CHECK_RESULT(vkCreateRayTracingPipelinesNV(device, VK_NULL_HANDLE, 1, &rayPipelineInfo, nullptr, &pipeline));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue