| 216 | } |
| 217 | |
| 218 | void CopyContext::updateTextureData(const Texture* pTexture, const void* pData) |
| 219 | { |
| 220 | mCommandsPending = true; |
| 221 | uint32_t subresourceCount = pTexture->getArraySize() * pTexture->getMipCount(); |
| 222 | if (pTexture->getType() == Texture::Type::TextureCube) |
| 223 | { |
| 224 | subresourceCount *= 6; |
| 225 | } |
| 226 | updateTextureSubresources(pTexture, 0, subresourceCount, pData); |
| 227 | } |
| 228 | |
| 229 | void CopyContext::updateSubresourceData( |
| 230 | const Texture* pDst, |
no test coverage detected