MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NRI / AddStreamerTextureUpdateRequest

Function AddStreamerTextureUpdateRequest

Source/Validation/ImplVal.cpp:1105–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105static 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
1122static Result CopyStreamerUpdateRequests(Streamer& streamer) {
1123 StreamerVal& streamerVal = (StreamerVal&)streamer;

Callers

nothing calls this directly

Calls 2

GetImplMethod · 0.45

Tested by

no test coverage detected