From 0cfc61b8ac5155ea393e5f3a380a45be5084cbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 24 Oct 2015 11:24:08 -0700 Subject: [PATCH] DXBC: Added missing chunk. Fixed #536. --- src/shader_dxbc.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/shader_dxbc.cpp b/src/shader_dxbc.cpp index 34e50c14..bf7051a6 100644 --- a/src/shader_dxbc.cpp +++ b/src/shader_dxbc.cpp @@ -1785,13 +1785,15 @@ namespace bgfx size += read(_reader, _dxbc.outputSignature); break; - case BX_MAKEFOURCC('R', 'D', 'E', 'F'): - case BX_MAKEFOURCC('I', 'F', 'C', 'E'): - case BX_MAKEFOURCC('P', 'C', 'S', 'G'): - case BX_MAKEFOURCC('S', 'T', 'A', 'T'): - case BX_MAKEFOURCC('S', 'F', 'I', '0'): - case BX_MAKEFOURCC('P', 'S', 'O', '1'): - case BX_MAKEFOURCC('P', 'S', 'O', '2'): + case BX_MAKEFOURCC('I', 'F', 'C', 'E'): // Interface. + case BX_MAKEFOURCC('R', 'D', 'E', 'F'): // Resource definition. + case BX_MAKEFOURCC('S', 'D', 'G', 'B'): // Shader debugging info (old). + case BX_MAKEFOURCC('S', 'P', 'D', 'B'): // Shader debugging info (new). + case BX_MAKEFOURCC('S', 'F', 'I', '0'): // ? + case BX_MAKEFOURCC('S', 'T', 'A', 'T'): // Statistics. + case BX_MAKEFOURCC('P', 'C', 'S', 'G'): // Patch constant signature. + case BX_MAKEFOURCC('P', 'S', 'O', '1'): // Pipeline State Object 1 + case BX_MAKEFOURCC('P', 'S', 'O', '2'): // Pipeline State Object 2 size += chunkSize; break;