| 1103 | } |
| 1104 | |
| 1105 | static uint64_t AddStreamerTextureUpdateRequest(Streamer& streamer, const TextureUpdateRequestDesc& textureUpdateRequestDesc) { |
| 1106 | DeviceVal& deviceVal = GetDeviceVal(streamer); |
| 1107 | StreamerVal& streamerVal = (StreamerVal&)streamer; |
| 1108 | StreamerImpl* streamerImpl = streamerVal.GetImpl(); |
| 1109 | |
| 1110 | streamerVal.isDynamicBufferValid = false; |
| 1111 | |
| 1112 | if (!textureUpdateRequestDesc.dstTexture) |
| 1113 | REPORT_ERROR(&deviceVal, "'textureUpdateRequestDesc.dstTexture' is NULL"); |
| 1114 | if (!textureUpdateRequestDesc.dataRowPitch) |
| 1115 | REPORT_WARNING(&deviceVal, "'textureUpdateRequestDesc.dataRowPitch = 0'"); |
| 1116 | if (!textureUpdateRequestDesc.dataSlicePitch) |
| 1117 | REPORT_WARNING(&deviceVal, "'textureUpdateRequestDesc.dataSlicePitch = 0'"); |
| 1118 | |
| 1119 | return streamerImpl->AddTextureUpdateRequest(textureUpdateRequestDesc); |
| 1120 | } |
| 1121 | |
| 1122 | static Result CopyStreamerUpdateRequests(Streamer& streamer) { |
| 1123 | StreamerVal& streamerVal = (StreamerVal&)streamer; |
nothing calls this directly
no test coverage detected