| 738 | } |
| 739 | |
| 740 | uint64_t Texture::getTextureSizeInBytes() const |
| 741 | { |
| 742 | // get allocation info for resource description |
| 743 | size_t outSizeBytes = 0, outAlignment = 0; |
| 744 | |
| 745 | gfx::ITextureResource::Desc* desc = mGfxTextureResource->getDesc(); |
| 746 | |
| 747 | FALCOR_GFX_CALL(mpDevice->getGfxDevice()->getTextureAllocationInfo(*desc, &outSizeBytes, &outAlignment)); |
| 748 | FALCOR_ASSERT(outSizeBytes > 0); |
| 749 | |
| 750 | return outSizeBytes; |
| 751 | } |
| 752 | |
| 753 | /** |
| 754 | * Python binding wrapper for returning the content of a texture as a numpy array. |
no outgoing calls
no test coverage detected