mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-06 20:31:35 +00:00
Fix configuration of spec constants when patching compute pipelines
This commit is contained in:
1 file changed
+2
-2
@@ -940,14 +940,14 @@ void VulkanShaderCache::MakeComputePipelineInfo(VkComputePipelineCreateInfo &pip
|
||||
{
|
||||
entry[s].constantID = pipeInfo.shaders[i].specialization[s].specID;
|
||||
entry[s].size = pipeInfo.shaders[i].specialization[s].dataSize;
|
||||
entry[s].offset = dataOffset;
|
||||
entry[s].offset = dataOffset * sizeof(uint64_t);
|
||||
|
||||
specdata[dataOffset] = pipeInfo.shaders[i].specialization[s].value;
|
||||
|
||||
dataOffset++;
|
||||
}
|
||||
|
||||
specInfo.dataSize = specdata.size();
|
||||
specInfo.dataSize = specdata.size() * sizeof(uint64_t);
|
||||
specInfo.pData = specdata.data();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user