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

Function IsCompressedFormat

renderdoc/driver/gl/gl_resources.cpp:1514–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512}
1513
1514bool IsCompressedFormat(GLenum internalFormat)
1515{
1516 switch(internalFormat)
1517 {
1518 // BC1
1519 case eGL_COMPRESSED_RGB_S3TC_DXT1_EXT:
1520 case eGL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
1521 case eGL_COMPRESSED_SRGB_S3TC_DXT1_EXT:
1522 case eGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT:
1523 // BC2
1524 case eGL_COMPRESSED_RGBA_S3TC_DXT3_EXT:
1525 case eGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT:
1526 // BC3
1527 case eGL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
1528 case eGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT:
1529 // BC4
1530 case eGL_COMPRESSED_RED_RGTC1:
1531 case eGL_COMPRESSED_SIGNED_RED_RGTC1:
1532 // BC5
1533 case eGL_COMPRESSED_RG_RGTC2:
1534 case eGL_COMPRESSED_SIGNED_RG_RGTC2:
1535 // BC6
1536 case eGL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB:
1537 case eGL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB:
1538 // BC7
1539 case eGL_COMPRESSED_RGBA_BPTC_UNORM_ARB:
1540 case eGL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB:
1541 // ETC1
1542 case eGL_ETC1_RGB8_OES:
1543 // ETC2
1544 case eGL_COMPRESSED_RGB8_ETC2:
1545 case eGL_COMPRESSED_SRGB8_ETC2:
1546 case eGL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:
1547 case eGL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
1548 // EAC
1549 case eGL_COMPRESSED_RGBA8_ETC2_EAC:
1550 case eGL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
1551 case eGL_COMPRESSED_R11_EAC:
1552 case eGL_COMPRESSED_SIGNED_R11_EAC:
1553 case eGL_COMPRESSED_RG11_EAC:
1554 case eGL_COMPRESSED_SIGNED_RG11_EAC:
1555 // ASTC
1556 case eGL_COMPRESSED_RGBA_ASTC_4x4_KHR:
1557 case eGL_COMPRESSED_RGBA_ASTC_5x4_KHR:
1558 case eGL_COMPRESSED_RGBA_ASTC_5x5_KHR:
1559 case eGL_COMPRESSED_RGBA_ASTC_6x5_KHR:
1560 case eGL_COMPRESSED_RGBA_ASTC_6x6_KHR:
1561 case eGL_COMPRESSED_RGBA_ASTC_8x5_KHR:
1562 case eGL_COMPRESSED_RGBA_ASTC_8x6_KHR:
1563 case eGL_COMPRESSED_RGBA_ASTC_8x8_KHR:
1564 case eGL_COMPRESSED_RGBA_ASTC_10x5_KHR:
1565 case eGL_COMPRESSED_RGBA_ASTC_10x6_KHR:
1566 case eGL_COMPRESSED_RGBA_ASTC_10x8_KHR:
1567 case eGL_COMPRESSED_RGBA_ASTC_10x10_KHR:
1568 case eGL_COMPRESSED_RGBA_ASTC_12x10_KHR:
1569 case eGL_COMPRESSED_RGBA_ASTC_12x12_KHR:
1570 case eGL_COMPRESSED_RGBA_ASTC_3x3x3_OES:
1571 case eGL_COMPRESSED_RGBA_ASTC_4x3x3_OES:

Callers 15

GetCompressedByteSizeFunction · 0.85
GetCompressedBlockSizeFunction · 0.85
GetTextureCompleteStatusFunction · 0.85
IsDepthStencilFormatFunction · 0.85
MakeResourceFormatFunction · 0.85
GetTextureDataMethod · 0.85
CreateProxyTextureMethod · 0.85
SetProxyTextureDataMethod · 0.85
RenderTextureInternalMethod · 0.85
GetSize_InitialStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected