[D3D12] Enable instruction numbers and offsets in DXBC disassembly

This commit is contained in:
Triang3l 2018-07-24 16:47:55 +03:00
parent 49e9ebce50
commit 3a90f7a246
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ bool D3D12Shader::Prepare() {
if (FLAGS_d3d12_shader_disasm) {
ID3DBlob* disassembly_blob;
if (SUCCEEDED(D3DDisassemble(blob_->GetBufferPointer(),
blob_->GetBufferSize(), 0, nullptr,
blob_->GetBufferSize(),
D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING |
D3D_DISASM_ENABLE_INSTRUCTION_OFFSET, nullptr,
&disassembly_blob))) {
host_disassembly_ =
reinterpret_cast<const char*>(disassembly_blob->GetBufferPointer());