d3d10: Implement D3D10CompileShader, forward to d3dcompiler.

This commit is contained in:
Matteo Bruni 2010-08-26 17:17:38 +02:00 committed by Alexandre Julliard
parent e574c89f88
commit da783ee57d
4 changed files with 12 additions and 2 deletions

View File

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = d3d10.dll
IMPORTLIB = d3d10
IMPORTS = dxguid uuid d3d10core dxgi
IMPORTS = dxguid uuid d3d10core d3dcompiler dxgi
C_SRCS = \
d3d10_main.c \

View File

@ -1,5 +1,5 @@
@ stub D3D10CompileEffectFromMemory
@ stub D3D10CompileShader
@ stdcall D3D10CompileShader(ptr long str ptr ptr str str long ptr ptr)
@ stdcall D3D10CreateBlob(long ptr) d3dcompiler_43.D3DCreateBlob
@ stdcall D3D10CreateDevice(ptr long ptr long long ptr)
@ stdcall D3D10CreateDeviceAndSwapChain(ptr long ptr long long ptr ptr ptr)

View File

@ -28,6 +28,7 @@
#include "objbase.h"
#include "d3d10.h"
#include "d3dcompiler.h"
/*
* This doesn't belong here, but for some functions it is possible to return that value,

View File

@ -133,3 +133,12 @@ const struct ID3D10ShaderReflectionVtbl d3d10_shader_reflection_vtbl =
d3d10_shader_reflection_GetInputParameterDesc,
d3d10_shader_reflection_GetOutputParameterDesc,
};
HRESULT WINAPI D3D10CompileShader(const char *data, SIZE_T data_size, const char *filename,
const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *entrypoint,
const char *profile, UINT flags, ID3D10Blob **shader, ID3D10Blob **error_messages)
{
/* Forward to d3dcompiler */
return D3DCompile(data, data_size, filename, defines, include,
entrypoint, profile, flags, 0, shader, error_messages);
}