MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetDiscardPattern

Function GetDiscardPattern

renderdoc/replay/replay_driver.cpp:1363–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361};
1362
1363bytebuf GetDiscardPattern(DiscardType type, const ResourceFormat &fmt, uint32_t rowPitch, bool invert)
1364{
1365 static const rdcliteral patterns[] = {
1366 // DiscardType::RenderPassLoad
1367 "..#.....##...##..##....##....##..#..#.####..###..##..###..####.."
1368 "..#....#..#.#..#.#.#...#.#..#..#.##.#..#...#....#..#.#..#.#....."
1369 "..#....#..#.#..#.#..#..#..#.#..#.##.#..#...#....#..#.#..#.###..."
1370 "..#....#..#.####.#..#..#..#.#..#.#.##..#...#....####.###..#....."
1371 "..#....#..#.#..#.#.#...#.#..#..#.#.##..#...#....#..#.#..#.#....."
1372 "..####..##..#..#.##....##....##..#..#..#....###.#..#.#..#.####.."
1373 "................................................................"
1374 "................................................................"_lit,
1375
1376 // DiscardType::RenderPassStore
1377 "...###.####..##..###...##....##..#..#.####..###..##..###..####.."
1378 "..#.....#...#..#.#..#..#.#..#..#.##.#..#...#....#..#.#..#.#....."
1379 "...#....#...#..#.#..#..#..#.#..#.##.#..#...#....#..#.#..#.###..."
1380 "....#...#...#..#.###...#..#.#..#.#.##..#...#....####.###..#....."
1381 ".....#..#...#..#.#..#..#.#..#..#.#.##..#...#....#..#.#..#.#....."
1382 "..###...#....##..#..#..##....##..#..#..#....###.#..#.#..#.####.."
1383 "................................................................"
1384 "................................................................"_lit,
1385
1386 // DiscardType::UndefinedTransition
1387 "..#..#.#..#.##...####.####.####.#..#.####.##....####.#..#..###.."
1388 "..#..#.##.#.#.#..#....#.....#...##.#.#....#.#....#...####.#....."
1389 "..#..#.##.#.#..#.###..###...#...##.#.###..#..#...#...##.#.#....."
1390 "..#..#.#.##.#..#.#....#.....#...#.##.#....#..#...#...#..#.#.##.."
1391 "..#..#.#.##.#.#..#....#.....#...#.##.#....#.#....#...#..#.#..#.."
1392 "...##..#..#.##...####.#....####.#..#.####.##....####.#..#..##..."
1393 "................................................................"
1394 "................................................................"_lit,
1395
1396 // DiscardType::DiscardCall
1397 "..##...####..###..###...#...###..##...####.##...####.#..#..###.."
1398 "..#.#...#...#....#.....#.#..#..#.#.#..#....#.#...#...####.#....."
1399 "..#..#..#....#...#.....#.#..#..#.#..#.###..#..#..#...##.#.#....."
1400 "..#..#..#.....#..#....#####.###..#..#.#....#..#..#...#..#.#.##.."
1401 "..#.#...#......#.#....#...#.#..#.#.#..#....#.#...#...#..#.#..#.."
1402 "..##...####.###...###.#...#.#..#.##...####.##...####.#..#..##..."
1403 "................................................................"
1404 "................................................................"_lit,
1405 // DiscardType::InvalidateCall
1406 "...####.#..#.#...#...#...#....####.##.....#...#####.####.##....."
1407 "....#...##.#.#...#..#.#..#.....#...#.#...#.#....#...#....#.#...."
1408 "....#...##.#.#...#..#.#..#.....#...#..#..#.#....#...###..#..#..."
1409 "....#...#.##..#.#..#####.#.....#...#..#.#####...#...#....#..#..."
1410 "....#...#.##..#.#..#...#.#.....#...#.#..#...#...#...#....#.#...."
1411 "...####.#..#...#...#...#.####.####.##...#...#...#...####.##....."
1412 "................................................................"
1413 "................................................................"_lit,
1414 };
1415
1416 const rdcliteral &pattern = patterns[(int)type];
1417
1418 RDCASSERT(pattern.length() == DiscardPatternWidth * DiscardPatternHeight);
1419
1420 bytebuf ret;

Callers 9

InitDebugDataMethod · 0.85
VulkanDebugManagerMethod · 0.85
InitReplayResourcesMethod · 0.85
D3D12DebugManagerMethod · 0.85

Calls 15

ConvertToHalfFunction · 0.85
RDCMAXFunction · 0.85
ConvertToR11G11B10Function · 0.85
ConvertToR9G9B9E5Function · 0.85
CreateOptionsBC6Function · 0.85
SetQualityBC6Function · 0.85
CompressBlockBC1Function · 0.85
CompressBlockBC2Function · 0.85
CompressBlockBC3Function · 0.85
CompressBlockBC4Function · 0.85
CompressBlockBC5Function · 0.85
CompressBlockBC6Function · 0.85

Tested by

no test coverage detected