| 748 | } |
| 749 | |
| 750 | TextureManager::CpuTextureHandle TextureManager::resolveUdimTexture(const CpuTextureHandle& handle, const float2& uv) const |
| 751 | { |
| 752 | if (!handle.isUdim()) |
| 753 | return handle; |
| 754 | |
| 755 | // Compute which UDIM ID texture coordinate maps to. |
| 756 | FALCOR_CHECK(uv[0] >= 0.f && uv[0] < 10.f && uv[1] >= 0.f && uv[1] < 10.f, "UDIM texture coordinate ({}) is out of range.", uv); |
| 757 | uint32_t udimID = 1001 + uint32_t(uv[0]) + 10 * uint32_t(uv[1]); |
| 758 | |
| 759 | return resolveUdimTexture(handle, udimID); |
| 760 | } |
| 761 | |
| 762 | TextureManager::CpuTextureHandle TextureManager::resolveUdimTexture(const CpuTextureHandle& handle, const uint32_t udimID) const |
| 763 | { |
nothing calls this directly
no test coverage detected