| 2011 | } |
| 2012 | |
| 2013 | uint32_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 | |
| 2031 | void WrappedID3D11Device::StartFrameCapture(DeviceOwnedWindow devWnd) |
| 2032 | { |