add kDataFormatBc1Unorm format map

This commit is contained in:
Asuka 2022-07-19 03:26:04 +08:00
parent 80fb91670b
commit b6fb21dc16
3 changed files with 5 additions and 3 deletions

View file

@ -976,10 +976,11 @@ namespace sce::Gnm
auto& resTable = shader.getResources();
//if (shader.name().find("1C3E9BEC02B89E0E") != std::string::npos)
if (shader.name().find("F3FAB76ECBEAABD2") != std::string::npos)
{
++count;
if (count == 5)
if (count == 1)
{
RdcController::instance()->triggerCapture();
}

View file

@ -118,7 +118,7 @@ namespace sce::Gnm::cvt
//{ kDataFormatR1ReversedUint, VK_FORMAT_R1_REVERSEDUINT },
//{ kDataFormatL1ReversedUint, VK_FORMAT_L1_REVERSEDUINT },
//{ kDataFormatA1ReversedUint, VK_FORMAT_A1_REVERSEDUINT },
//{ kDataFormatBc1Unorm, VK_FORMAT_BC1_UNORM },
{ kDataFormatBc1Unorm, VK_FORMAT_BC1_RGBA_UNORM_BLOCK },
//{ kDataFormatBc1UBNorm, VK_FORMAT_BC1_UBNORM },
//{ kDataFormatBc1UnormSrgb, VK_FORMAT_BC1_UNORMSRGB },
//{ kDataFormatBc2Unorm, VK_FORMAT_BC2_UNORM },

View file

@ -92,7 +92,8 @@ namespace sce
auto transform = res.second.transform();
if (type.test(SceResourceType::Buffer) &&
!type.any(SceResourceType::RenderTarget, SceResourceType::DepthRenderTarget))
!type.any(SceResourceType::RenderTarget,
SceResourceType::DepthRenderTarget))
{
auto& buffer = res.second.buffer().buffer;
void* data = res.second.cpuMemory();