mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Make vulkan pipeline state available for replay
* ResourceFormat is still TODO
This commit is contained in:
@@ -108,3 +108,21 @@ bool IsDepthStencilFormat(VkFormat f)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
ResourceFormat MakeResourceFormat(VkFormat fmt)
|
||||
{
|
||||
ResourceFormat ret;
|
||||
|
||||
ret.rawType = (uint32_t)fmt;
|
||||
ret.special = false;
|
||||
ret.specialFormat = eSpecial_Unknown;
|
||||
ret.strname = ToStr::Get(fmt).substr(10); // 3 == strlen("VK_FORMAT_")
|
||||
|
||||
|
||||
// VKTODOHIGH generate resource format
|
||||
ret.compByteWidth = 1;
|
||||
ret.compCount = 4;
|
||||
ret.compType = eCompType_UNorm;
|
||||
ret.srgbCorrected = false;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user