d3d11: Extract SM5 shader code from DXBC.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-02-12 01:27:44 +01:00 committed by Alexandre Julliard
parent b9f1b0fff8
commit 6ef3324fd8
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@
#define TAG_ISGN MAKE_TAG('I', 'S', 'G', 'N') #define TAG_ISGN MAKE_TAG('I', 'S', 'G', 'N')
#define TAG_OSGN MAKE_TAG('O', 'S', 'G', 'N') #define TAG_OSGN MAKE_TAG('O', 'S', 'G', 'N')
#define TAG_SHDR MAKE_TAG('S', 'H', 'D', 'R') #define TAG_SHDR MAKE_TAG('S', 'H', 'D', 'R')
#define TAG_SHEX MAKE_TAG('S', 'H', 'E', 'X')
struct d3d_device; struct d3d_device;

View File

@ -42,6 +42,8 @@ static HRESULT shdr_handler(const char *data, DWORD data_size, DWORD tag, void *
break; break;
case TAG_SHDR: case TAG_SHDR:
case TAG_SHEX:
if (shader_info->shader_code) FIXME("Multiple SHDR/SHEX chunks.\n");
shader_info->shader_code = (const DWORD *)data; shader_info->shader_code = (const DWORD *)data;
break; break;