MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / ReadInts

Method ReadInts

src/render/PixelReadbackPass.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154dm::int4 PixelReadbackPass::ReadInts()
155{
156 void* pData = m_Device->mapBuffer(m_ReadbackBuffer, nvrhi::CpuAccessMode::Read);
157 assert(pData);
158
159 int4 values = *static_cast<int4*>(pData);
160
161 m_Device->unmapBuffer(m_ReadbackBuffer);
162 return values;
163}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected