mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
d3d10: Implement D3D10CompileShader, forward to d3dcompiler.
This commit is contained in:
parent
e574c89f88
commit
da783ee57d
@ -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 \
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user