Commit da783ee5 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d10: Implement D3D10CompileShader, forward to d3dcompiler.

parent e574c89f
......@@ -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 \
......
@ 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)
......
......@@ -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,
......
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment