MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetCBufferVariableContents

Method GetCBufferVariableContents

renderdoc/replay/replay_controller.cpp:1727–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1725}
1726
1727rdcarray<ShaderVariable> ReplayController::GetCBufferVariableContents(
1728 ResourceId pipeline, ResourceId shader, ShaderStage stage, const rdcstr &entryPoint,
1729 uint32_t cbufslot, ResourceId buffer, uint64_t offset, uint64_t length)
1730{
1731 CHECK_REPLAY_THREAD();
1732
1733 RENDERDOC_PROFILEFUNCTION();
1734
1735 bytebuf data;
1736 if(buffer != ResourceId())
1737 {
1738 if(buffer != ResourceId())
1739 {
1740 if(length > 0)
1741 m_pDevice->GetBufferData(buffer, offset, length, data);
1742 FatalErrorCheck();
1743 }
1744 }
1745
1746 rdcarray<ShaderVariable> v;
1747
1748 if(shader != ResourceId())
1749 {
1750 m_pDevice->FillCBufferVariables(pipeline, shader, stage, entryPoint, cbufslot, v, data);
1751 FatalErrorCheck();
1752 }
1753
1754 return v;
1755}
1756
1757rdcarray<WindowingSystem> ReplayController::GetSupportedWindowSystems()
1758{

Callers 13

OnEventChangedMethod · 0.80
sampleCodeFunction · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80

Calls 3

ResourceIdFunction · 0.50
GetBufferDataMethod · 0.45
FillCBufferVariablesMethod · 0.45

Tested by

no test coverage detected