| 172 | } |
| 173 | |
| 174 | bool StreamingTexture::CanBeUpdated() const |
| 175 | { |
| 176 | // Streaming Texture cannot be updated if: |
| 177 | // - is not initialized |
| 178 | // - mip data uploading job running |
| 179 | // - resize texture job running |
| 180 | if (IsInitialized()) |
| 181 | { |
| 182 | ScopeLock lock(_owner->GetOwnerLocker()); |
| 183 | return _streamingTasks.Count() == 0; |
| 184 | } |
| 185 | return false; |
| 186 | } |
| 187 | |
| 188 | class StreamTextureResizeTask : public GPUTask |
| 189 | { |
nothing calls this directly
no test coverage detected