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

Method SetCommandAnnotation

renderdoc/driver/d3d11/d3d11_device.cpp:2013–2029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011}
2012
2013uint32_t WrappedID3D11Device::SetCommandAnnotation(void *queueOrCommandBuffer, const char *key,
2014 RENDERDOC_AnnotationType valueType,
2015 uint32_t valueVectorWidth,
2016 const RENDERDOC_AnnotationValue *value)
2017{
2018 if(queueOrCommandBuffer != NULL && queueOrCommandBuffer != m_pImmediateContext)
2019 return 2;
2020
2021 // D3D11 doesn't have queues or command buffers, so we accept NULL
2022 // and treat all command annotations as immediate/global
2023 if(IsActiveCapturing(m_State))
2024 {
2025 return m_pImmediateContext->SetCommandAnnotation(key, valueType, valueVectorWidth, value);
2026 }
2027
2028 return 0;
2029}
2030
2031void WrappedID3D11Device::StartFrameCapture(DeviceOwnedWindow devWnd)
2032{

Callers 5

SetCommandAnnotationFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

IsActiveCapturingFunction · 0.85

Tested by 4

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36