| 1647 | } |
| 1648 | |
| 1649 | ntc::TextureSetFeatures GetTextureSetFeatures(bool needStagingUpload) |
| 1650 | { |
| 1651 | bool sharedTexturesAvailable = true; |
| 1652 | for (const auto& image : m_images) |
| 1653 | { |
| 1654 | if (!image.referenceTextureShared) |
| 1655 | { |
| 1656 | sharedTexturesAvailable = false; |
| 1657 | break; |
| 1658 | } |
| 1659 | } |
| 1660 | |
| 1661 | ntc::TextureSetFeatures textureSetFeatures; |
| 1662 | textureSetFeatures.stagingBytesPerPixel = sharedTexturesAvailable ? 0 : sizeof(float) * 4; |
| 1663 | textureSetFeatures.stagingWidth = needStagingUpload ? m_maxOriginalWidth : 0; |
| 1664 | textureSetFeatures.stagingHeight = needStagingUpload ? m_maxOriginalHeight : 0; |
| 1665 | textureSetFeatures.separateRefOutData = true; |
| 1666 | |
| 1667 | return textureSetFeatures; |
| 1668 | } |
| 1669 | |
| 1670 | bool UploadReferenceImages(bool uploadAllTextures) |
| 1671 | { |
nothing calls this directly
no outgoing calls
no test coverage detected