mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 22:46:41 +00:00
DXIL Debugger small tweak to AnnotateHandle properties data
This commit is contained in:
@@ -1745,7 +1745,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
|
||||
const AnnotationProperties &props = m_AnnotatedProperties.at(resultId);
|
||||
fmt.stride = props.structStride;
|
||||
fmt.numComps = props.compCount;
|
||||
fmt.byteWidth = GetElementByteSize(props.compType);
|
||||
fmt.byteWidth = props.byteWidth;
|
||||
}
|
||||
|
||||
// Unbound resource
|
||||
@@ -1972,10 +1972,12 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
|
||||
ComponentType dxilCompType = ComponentType(packedProps[1] & 0xFF);
|
||||
VarType compType = VarTypeForComponentType(dxilCompType);
|
||||
uint32_t compCount = (uint32_t)((packedProps[1] & 0xFF00) >> 8);
|
||||
uint32_t byteWidth = GetElementByteSize(compType);
|
||||
uint32_t structStride = packedProps[1];
|
||||
// Store the annotate properties for the result
|
||||
RDCASSERTEQUAL(m_AnnotatedProperties.count(resultId), 0);
|
||||
m_AnnotatedProperties[resultId] = {resClass, compType, compCount, structStride};
|
||||
m_AnnotatedProperties[resultId] = {resClass, compType, compCount, byteWidth,
|
||||
structStride};
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -194,6 +194,7 @@ struct ThreadState
|
||||
DXIL::ResourceClass resClass;
|
||||
VarType compType;
|
||||
uint32_t compCount;
|
||||
uint32_t byteWidth;
|
||||
uint32_t structStride;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user