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

Method GetReadOnlyResources

qrenderdoc/Windows/TextureViewer.cpp:328–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328rdcarray<UsedDescriptor> Following::GetReadOnlyResources(ICaptureContext &ctx, ShaderStage stage,
329 bool onlyUsed)
330{
331 const ActionDescription *curAction = ctx.CurAction();
332 bool copy = false, clear = false, compute = false;
333 GetActionContext(ctx, copy, clear, compute);
334
335 if(copy || clear)
336 {
337 rdcarray<UsedDescriptor> ret;
338
339 // only return copy source for one stage
340 if(copy && stage == ShaderStage::Pixel)
341 ret.push_back(
342 MakeUsedDescriptor(stage, curAction->copySource, curAction->copySourceSubresource));
343
344 return ret;
345 }
346 else if(compute)
347 {
348 // only return compute resources for one stage
349 if(stage != ShaderStage::Pixel && stage != ShaderStage::Compute)
350 return rdcarray<UsedDescriptor>();
351
352 return ctx.CurPipelineState().GetReadOnlyResources(ShaderStage::Compute, onlyUsed);
353 }
354 else
355 {
356 return ctx.CurPipelineState().GetReadOnlyResources(stage, onlyUsed);
357 }
358}
359
360const ShaderReflection *Following::GetReflection(ICaptureContext &ctx, ShaderStage stage)
361{

Callers 13

cacheResourcesMethod · 0.80
exportHTMLMethod · 0.80
exportHTMLMethod · 0.80
check_testMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_captureMethod · 0.80
check_computeMethod · 0.80
check_captureMethod · 0.80

Calls 3

MakeUsedDescriptorFunction · 0.85
CurActionMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected