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

Method GetActionContext

qrenderdoc/Windows/TextureViewer.cpp:171–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void Following::GetActionContext(ICaptureContext &ctx, bool &copy, bool &clear, bool &compute)
172{
173 const ActionDescription *curAction = ctx.CurAction();
174 copy = curAction != NULL &&
175 (curAction->flags & (ActionFlags::Copy | ActionFlags::Resolve | ActionFlags::Present));
176 clear = curAction != NULL && (curAction->flags & ActionFlags::Clear);
177 compute = curAction != NULL && (curAction->flags & ActionFlags::Dispatch) &&
178 ctx.CurPipelineState().GetShader(ShaderStage::Compute) != ResourceId();
179}
180
181int Following::GetHighestMip(ICaptureContext &ctx)
182{

Callers

nothing calls this directly

Calls 3

ResourceIdFunction · 0.50
CurActionMethod · 0.45
GetShaderMethod · 0.45

Tested by

no test coverage detected