ReactOS 0.4.17-dev-934-g091855f
d3dx10async.h File Reference
#include "d3dx10.h"
Include dependency graph for d3dx10async.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT WINAPI D3DX10CompileFromMemory (const char *data, SIZE_T data_size, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *entry_point, const char *target, UINT sflags, UINT eflags, ID3DX10ThreadPump *pump, ID3D10Blob **shader, ID3D10Blob **error_messages, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectFromFileA (const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3D10EffectPool *effectpool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectFromFileW (const WCHAR *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3D10EffectPool *effectpool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectFromMemory (const void *data, SIZE_T datasize, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3D10EffectPool *effectpool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectPoolFromFileA (const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3DX10ThreadPump *pump, ID3D10EffectPool **effectpool, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectPoolFromFileW (const WCHAR *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3DX10ThreadPump *pump, ID3D10EffectPool **effectpool, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectPoolFromMemory (const void *data, SIZE_T datasize, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT hlslflags, UINT fxflags, ID3D10Device *device, ID3DX10ThreadPump *pump, ID3D10EffectPool **effectpool, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10PreprocessShaderFromMemory (const char *data, SIZE_T data_size, const char *filename, const D3D10_SHADER_MACRO *defines, ID3DInclude *include, ID3DX10ThreadPump *pump, ID3D10Blob **shader_text, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectFromResourceA (HMODULE module, const char *resource_name, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT shader_flags, UINT effect_flags, ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateEffectFromResourceW (HMODULE module, const WCHAR *resource_name, const WCHAR *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT shader_flags, UINT effect_flags, ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
 
HRESULT WINAPI D3DX10CreateAsyncFileLoaderW (const WCHAR *filename, ID3DX10DataLoader **loader)
 
HRESULT WINAPI D3DX10CreateAsyncFileLoaderA (const char *filename, ID3DX10DataLoader **loader)
 
HRESULT WINAPI D3DX10CreateAsyncMemoryLoader (const void *data, SIZE_T datasize, ID3DX10DataLoader **loader)
 
HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA (HMODULE module, const char *resource, ID3DX10DataLoader **loader)
 
HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW (HMODULE module, const WCHAR *resource, ID3DX10DataLoader **loader)
 
HRESULT WINAPI D3DX10CreateAsyncTextureProcessor (ID3D10Device *device, D3DX10_IMAGE_LOAD_INFO *info, ID3DX10DataProcessor **processor)
 
HRESULT WINAPI D3DX10CreateAsyncTextureInfoProcessor (D3DX10_IMAGE_INFO *info, ID3DX10DataProcessor **processor)
 

Function Documentation

◆ D3DX10CompileFromMemory()

HRESULT WINAPI D3DX10CompileFromMemory ( const char *  data,
SIZE_T  data_size,
const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  entry_point,
const char *  target,
UINT  sflags,
UINT  eflags,
ID3DX10ThreadPump *  pump,
ID3D10Blob **  shader,
ID3D10Blob **  error_messages,
HRESULT *  hresult 
)

Definition at line 381 of file async.c.

385{
386 TRACE("data %s, data_size %Iu, filename %s, defines %p, include %p, entry_point %s, target %s, "
387 "sflags %#x, eflags %#x, pump %p, shader %p, error_messages %p, hresult %p.\n",
388 debugstr_an(data, data_size), data_size, debugstr_a(filename), defines, include,
389 debugstr_a(entry_point), debugstr_a(target), sflags, eflags, pump, shader,
390 error_messages, hresult);
391
392 if (pump)
393 FIXME("Unimplemented ID3DX10ThreadPump handling.\n");
394
395 return D3DCompile(data, data_size, filename, defines, include, entry_point, target,
397}
#define FIXME(fmt,...)
Definition: precomp.h:53
static SIZE_T const char const D3D_SHADER_MACRO ID3DInclude * include
Definition: asm.c:31
static SIZE_T const char const D3D_SHADER_MACRO ID3DInclude UINT ID3DBlob ID3DBlob ** error_messages
Definition: asm.c:32
static SIZE_T const char const D3D_SHADER_MACRO * defines
Definition: asm.c:31
HRESULT WINAPI D3DCompile(const void *data, SIZE_T data_size, const char *filename, const D3D_SHADER_MACRO *defines, ID3DInclude *include, const char *entrypoint, const char *target, UINT sflags, UINT eflags, ID3DBlob **shader, ID3DBlob **error_messages)
Definition: compiler.c:639
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:55
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint shader
Definition: glext.h:6030
const char * filename
Definition: ioapi.h:137
#define debugstr_a
Definition: kernel32.h:31
#define TRACE(s)
Definition: solgame.cpp:4
Definition: tools.h:99

◆ D3DX10CreateAsyncFileLoaderA()

HRESULT WINAPI D3DX10CreateAsyncFileLoaderA ( const char *  filename,
ID3DX10DataLoader **  loader 
)

Definition at line 445 of file async.c.

446{
447 WCHAR *filename_w;
448 HRESULT hr;
449 int len;
450
451 TRACE("filename %s, loader %p.\n", debugstr_a(filename), loader);
452
453 if (!filename || !loader)
454 return E_FAIL;
455
457 filename_w = malloc(len * sizeof(*filename_w));
458 MultiByteToWideChar(CP_ACP, 0, filename, -1, filename_w, len);
459
461
462 free(filename_w);
463
464 return hr;
465}
#define E_FAIL
Definition: ddrawi.h:102
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
HRESULT hr
Definition: delayimp.cpp:582
HRESULT WINAPI D3DX10CreateAsyncFileLoaderW(const WCHAR *filename, ID3DX10DataLoader **loader)
Definition: async.c:467
#define NULL
Definition: types.h:112
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
GLenum GLsizei len
Definition: glext.h:6722
short WCHAR
Definition: pedump.c:58
Definition: loader.c:72

◆ D3DX10CreateAsyncFileLoaderW()

HRESULT WINAPI D3DX10CreateAsyncFileLoaderW ( const WCHAR *  filename,
ID3DX10DataLoader **  loader 
)

Definition at line 467 of file async.c.

468{
469 struct asyncdataloader *object;
470
471 TRACE("filename %s, loader %p.\n", debugstr_w(filename), loader);
472
473 if (!filename || !loader)
474 return E_FAIL;
475
476 object = calloc(1, sizeof(*object));
477 if (!object)
478 return E_OUTOFMEMORY;
479
480 object->ID3DX10DataLoader_iface.lpVtbl = &filedataloadervtbl;
481 object->u.file.path = malloc((lstrlenW(filename) + 1) * sizeof(WCHAR));
482 if (!object->u.file.path)
483 {
484 free(object);
485 return E_OUTOFMEMORY;
486 }
487 lstrcpyW(object->u.file.path, filename);
488 object->data = NULL;
489 object->size = 0;
490
491 *loader = &object->ID3DX10DataLoader_iface;
492
493 return S_OK;
494}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const ID3DX10DataLoaderVtbl filedataloadervtbl
Definition: async.c:169
#define lstrcpyW
Definition: compat.h:749
#define lstrlenW
Definition: compat.h:750
#define S_OK
Definition: intsafe.h:52
#define debugstr_w
Definition: kernel32.h:32
#define calloc
Definition: rosglue.h:14

Referenced by D3DX10CreateAsyncFileLoaderA(), D3DX10CreateTextureFromFileW(), and D3DX10GetImageInfoFromFileW().

◆ D3DX10CreateAsyncMemoryLoader()

HRESULT WINAPI D3DX10CreateAsyncMemoryLoader ( const void *  data,
SIZE_T  datasize,
ID3DX10DataLoader **  loader 
)

Definition at line 423 of file async.c.

424{
425 struct asyncdataloader *object;
426
427 TRACE("data %p, data_size %Iu, loader %p.\n", data, data_size, loader);
428
429 if (!data || !loader)
430 return E_FAIL;
431
432 object = calloc(1, sizeof(*object));
433 if (!object)
434 return E_OUTOFMEMORY;
435
436 object->ID3DX10DataLoader_iface.lpVtbl = &memorydataloadervtbl;
437 object->data = (void *)data;
438 object->size = data_size;
439
440 *loader = &object->ID3DX10DataLoader_iface;
441
442 return S_OK;
443}
static const ID3DX10DataLoaderVtbl memorydataloadervtbl
Definition: async.c:84

Referenced by D3DX10CreateTextureFromMemory(), and D3DX10GetImageInfoFromMemory().

◆ D3DX10CreateAsyncResourceLoaderA()

HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA ( HMODULE  module,
const char *  resource,
ID3DX10DataLoader **  loader 
)

Definition at line 496 of file async.c.

497{
498 struct asyncdataloader *object;
499 HRSRC rsrc;
500 HRESULT hr;
501
502 TRACE("module %p, resource %s, loader %p.\n", module, debugstr_a(resource), loader);
503
504 if (!loader)
505 return E_FAIL;
506
507 object = calloc(1, sizeof(*object));
508 if (!object)
509 return E_OUTOFMEMORY;
510
512 {
513 free(object);
514 return hr;
515 }
516
517 object->ID3DX10DataLoader_iface.lpVtbl = &resourcedataloadervtbl;
518 object->u.resource.module = module;
519 object->u.resource.rsrc = rsrc;
520 object->data = NULL;
521 object->size = 0;
522
523 *loader = &object->ID3DX10DataLoader_iface;
524
525 return S_OK;
526}
static const ID3DX10DataLoaderVtbl resourcedataloadervtbl
Definition: async.c:272
static HRESULT load_resource_initA(HMODULE module, const char *resource, HRSRC *rsrc)
Definition: async.c:176
#define FAILED(hr)
Definition: intsafe.h:51
HRSRC rsrc
Definition: async.c:44
HMODULE module
Definition: async.c:43

Referenced by D3DX10CreateTextureFromResourceA(), and D3DX10GetImageInfoFromResourceA().

◆ D3DX10CreateAsyncResourceLoaderW()

HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW ( HMODULE  module,
const WCHAR *  resource,
ID3DX10DataLoader **  loader 
)

Definition at line 528 of file async.c.

529{
530 struct asyncdataloader *object;
531 HRSRC rsrc;
532 HRESULT hr;
533
534 TRACE("module %p, resource %s, loader %p.\n", module, debugstr_w(resource), loader);
535
536 if (!loader)
537 return E_FAIL;
538
539 object = calloc(1, sizeof(*object));
540 if (!object)
541 return E_OUTOFMEMORY;
542
544 {
545 free(object);
546 return hr;
547 }
548
549 object->ID3DX10DataLoader_iface.lpVtbl = &resourcedataloadervtbl;
550 object->u.resource.module = module;
551 object->u.resource.rsrc = rsrc;
552 object->data = NULL;
553 object->size = 0;
554
555 *loader = &object->ID3DX10DataLoader_iface;
556
557 return S_OK;
558}
static HRESULT load_resource_initW(HMODULE module, const WCHAR *resource, HRSRC *rsrc)
Definition: async.c:188

Referenced by D3DX10CreateTextureFromResourceW(), and D3DX10GetImageInfoFromResourceW().

◆ D3DX10CreateAsyncTextureInfoProcessor()

HRESULT WINAPI D3DX10CreateAsyncTextureInfoProcessor ( D3DX10_IMAGE_INFO *  info,
ID3DX10DataProcessor **  processor 
)

Definition at line 560 of file async.c.

561{
563
564 TRACE("info %p, processor %p.\n", info, processor);
565
566 if (!processor)
567 return E_INVALIDARG;
568
569 object = malloc(sizeof(*object));
570 if (!object)
571 return E_OUTOFMEMORY;
572
573 object->ID3DX10DataProcessor_iface.lpVtbl = &texture_info_processor_vtbl;
574 object->info = info;
575
576 *processor = &object->ID3DX10DataProcessor_iface;
577 return S_OK;
578}
#define E_INVALIDARG
Definition: ddrawi.h:101
static ID3DX10DataProcessorVtbl texture_info_processor_vtbl
Definition: async.c:314
D3DX10_IMAGE_INFO * info
Definition: async.c:282

Referenced by D3DX10GetImageInfoFromFileW(), D3DX10GetImageInfoFromMemory(), D3DX10GetImageInfoFromResourceA(), and D3DX10GetImageInfoFromResourceW().

◆ D3DX10CreateAsyncTextureProcessor()

HRESULT WINAPI D3DX10CreateAsyncTextureProcessor ( ID3D10Device *  device,
D3DX10_IMAGE_LOAD_INFO *  info,
ID3DX10DataProcessor **  processor 
)

Definition at line 580 of file async.c.

582{
584
585 TRACE("device %p, load_info %p, processor %p.\n", device, load_info, processor);
586
587 if (!device || !processor)
588 return E_INVALIDARG;
589
590 object = calloc(1, sizeof(*object));
591 if (!object)
592 return E_OUTOFMEMORY;
593
594 object->ID3DX10DataProcessor_iface.lpVtbl = &texture_processor_vtbl;
595 object->device = device;
596 ID3D10Device_AddRef(device);
597 init_load_info(load_info, &object->load_info);
598
599 *processor = &object->ID3DX10DataProcessor_iface;
600 return S_OK;
601}
static ID3DX10DataProcessorVtbl texture_processor_vtbl
Definition: async.c:374
void init_load_info(const D3DX10_IMAGE_LOAD_INFO *load_info, D3DX10_IMAGE_LOAD_INFO *out)
Definition: texture.c:730
Definition: devices.h:37
D3DX10_IMAGE_LOAD_INFO load_info
Definition: async.c:325
ID3D10Device * device
Definition: async.c:324

Referenced by D3DX10CreateTextureFromFileW(), D3DX10CreateTextureFromMemory(), D3DX10CreateTextureFromResourceA(), and D3DX10CreateTextureFromResourceW().

◆ D3DX10CreateEffectFromFileA()

HRESULT WINAPI D3DX10CreateEffectFromFileA ( const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3D10EffectPool *  effectpool,
ID3DX10ThreadPump *  pump,
ID3D10Effect **  effect,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 130 of file compiler.c.

134{
136 HRESULT hr;
137 int len;
138
139 TRACE("filename %s, defines %p, include %p, profile %s, shader_flags %#x, effect_flags %#x, "
140 "device %p, effect_pool %p, pump %p, effect %p, errors %p, hresult %p.\n",
141 debugstr_a(filename), defines, include, debugstr_a(profile), shader_flags, effect_flags,
142 device, effect_pool, pump, effect, errors, hresult);
143
144 if (!filename)
145 return E_FAIL;
146
148 if (!(filenameW = malloc(len * sizeof(*filenameW))))
149 return E_OUTOFMEMORY;
151
153 effect_flags, device, effect_pool, pump, effect, errors, hresult);
155
156 return hr;
157}
HRESULT WINAPI D3DX10CreateEffectFromFileW(const WCHAR *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT shader_flags, UINT effect_flags, ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3DX10ThreadPump *pump, ID3D10Effect **effect, ID3D10Blob **errors, HRESULT *hresult)
Definition: compiler.c:95
#define profile
Definition: kernel32.h:12
static const WCHAR filenameW[]
Definition: resource.c:27

◆ D3DX10CreateEffectFromFileW()

HRESULT WINAPI D3DX10CreateEffectFromFileW ( const WCHAR *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3D10EffectPool *  effectpool,
ID3DX10ThreadPump *  pump,
ID3D10Effect **  effect,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 95 of file compiler.c.

99{
100 char filename_a[MAX_PATH];
101 void *buffer = NULL;
102 DWORD size = 0;
103 HRESULT hr;
104
105 TRACE("filename %s, defines %p, include %p, profile %s, shader_flags %#x, effect_flags %#x, "
106 "device %p, effect_pool %p, pump %p, effect %p, errors %p, hresult %p.\n",
107 debugstr_w(filename), defines, include, debugstr_a(profile), shader_flags, effect_flags,
108 device, effect_pool, pump, effect, errors, hresult);
109
110 if (!filename)
111 return E_FAIL;
112
113 if (pump)
114 FIXME("Asynchronous mode is not supported.\n");
115
116 if (!include)
118
120 {
121 WideCharToMultiByte(CP_ACP, 0, filename, -1, filename_a, sizeof(filename_a), NULL, NULL);
123 shader_flags, effect_flags, device, effect_pool, effect, errors);
124 free(buffer);
125 }
126
127 return hr;
128}
#define D3D_COMPILE_STANDARD_FILE_INCLUDE
Definition: d3dcompiler.h:85
static HRESULT create_effect(const void *data, SIZE_T datasize, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *profile, UINT shader_flags, UINT effect_flags, ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect, ID3D10Blob **errors)
Definition: compiler.c:33
HRESULT load_file(const WCHAR *path, void **data, DWORD *size)
Definition: async.c:91
#define MAX_PATH
Definition: compat.h:34
#define WideCharToMultiByte
Definition: compat.h:111
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
#define SUCCEEDED(hr)
Definition: intsafe.h:50

Referenced by D3DX10CreateEffectFromFileA().

◆ D3DX10CreateEffectFromMemory()

HRESULT WINAPI D3DX10CreateEffectFromMemory ( const void *  data,
SIZE_T  datasize,
const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3D10EffectPool *  effectpool,
ID3DX10ThreadPump *  pump,
ID3D10Effect **  effect,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 75 of file compiler.c.

79{
80 TRACE("data %p, datasize %Iu, filename %s, defines %p, include %p, profile %s, shader_flags %#x,"
81 "effect_flags %#x, device %p, effect_pool %p, pump %p, effect %p, errors %p, hresult %p.\n",
83 shader_flags, effect_flags, device, effect_pool, pump, effect, errors, hresult);
84
85 if (pump)
86 FIXME("Asynchronous mode is not supported.\n");
87
88 if (!include)
90
92 shader_flags, effect_flags, device, effect_pool, effect, errors);
93}
static SIZE_T datasize
Definition: asm.c:30

◆ D3DX10CreateEffectFromResourceA()

HRESULT WINAPI D3DX10CreateEffectFromResourceA ( HMODULE  module,
const char *  resource_name,
const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  shader_flags,
UINT  effect_flags,
ID3D10Device *  device,
ID3D10EffectPool *  effect_pool,
ID3DX10ThreadPump *  pump,
ID3D10Effect **  effect,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 159 of file compiler.c.

164{
165 void *data;
166 DWORD size;
167 HRESULT hr;
168
169 TRACE("module %p, resource_name %s, filename %s, defines %p, include %p, profile %s, "
170 "shader_flags %#x, effect_flags %#x, device %p, effect_pool %p, pump %p, effect %p, "
171 "errors %p, hresult %p.\n", module, debugstr_a(resource_name), debugstr_a(filename),
172 defines, include, debugstr_a(profile), shader_flags, effect_flags,
173 device, effect_pool, pump, effect, errors, hresult);
174
175 hr = load_resourceA(module, resource_name, &data, &size);
176 if (FAILED(hr))
177 return hr;
178
180 shader_flags, effect_flags, device, effect_pool, effect, errors);
181}
HRESULT load_resourceA(HMODULE module, const char *resource, void **data, DWORD *size)
Definition: async.c:213

◆ D3DX10CreateEffectFromResourceW()

HRESULT WINAPI D3DX10CreateEffectFromResourceW ( HMODULE  module,
const WCHAR *  resource_name,
const WCHAR *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  shader_flags,
UINT  effect_flags,
ID3D10Device *  device,
ID3D10EffectPool *  effect_pool,
ID3DX10ThreadPump *  pump,
ID3D10Effect **  effect,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 183 of file compiler.c.

188{
189 char *filename = NULL;
190 void *data;
191 DWORD size;
192 HRESULT hr;
193 int len;
194
195 TRACE("module %p, resource_name %s, filename %s, defines %p, include %p, profile %s, "
196 "shader_flags %#x, effect_flags %#x, device %p, effect_pool %p, pump %p, effect %p, "
197 "errors %p, hresult %p.\n", module, debugstr_w(resource_name), debugstr_w(filenameW),
198 defines, include, debugstr_a(profile), shader_flags, effect_flags,
199 device, effect_pool, pump, effect, errors, hresult);
200
201 hr = load_resourceW(module, resource_name, &data, &size);
202 if (FAILED(hr))
203 return hr;
204
205 if (filenameW)
206 {
208 if (!(filename = malloc(len)))
209 return E_OUTOFMEMORY;
211 }
212
214 shader_flags, effect_flags, device, effect_pool, effect, errors);
215 free(filename);
216 return hr;
217}
HRESULT load_resourceW(HMODULE module, const WCHAR *resource, void **data, DWORD *size)
Definition: async.c:223

◆ D3DX10CreateEffectPoolFromFileA()

HRESULT WINAPI D3DX10CreateEffectPoolFromFileA ( const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3DX10ThreadPump *  pump,
ID3D10EffectPool **  effectpool,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 399 of file async.c.

402{
403 FIXME("filename %s, defines %p, include %p, profile %s, hlslflags %#x, fxflags %#x, device %p, "
404 "pump %p, effectpool %p, errors %p, hresult %p, stub!\n",
405 debugstr_a(filename), defines, include, debugstr_a(profile), hlslflags, fxflags, device,
406 pump, effectpool, errors, hresult);
407
408 return E_NOTIMPL;
409}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ D3DX10CreateEffectPoolFromFileW()

HRESULT WINAPI D3DX10CreateEffectPoolFromFileW ( const WCHAR *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3DX10ThreadPump *  pump,
ID3D10EffectPool **  effectpool,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 411 of file async.c.

414{
415 FIXME("filename %s, defines %p, include %p, profile %s, hlslflags %#x, fxflags %#x, device %p, "
416 "pump %p, effectpool %p, errors %p, hresult %p, stub!\n",
417 debugstr_w(filename), defines, include, debugstr_a(profile), hlslflags, fxflags, device,
418 pump, effectpool, errors, hresult);
419
420 return E_NOTIMPL;
421}

◆ D3DX10CreateEffectPoolFromMemory()

HRESULT WINAPI D3DX10CreateEffectPoolFromMemory ( const void *  data,
SIZE_T  datasize,
const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3D10Include *  include,
const char *  profile,
UINT  hlslflags,
UINT  fxflags,
ID3D10Device *  device,
ID3DX10ThreadPump *  pump,
ID3D10EffectPool **  effectpool,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 51 of file d3dx10_43_main.c.

55{
56 FIXME("data %p, datasize %Iu, filename %s, defines %p, include %p, profile %s, hlslflags %#x, fxflags %#x, "
57 "device %p, pump %p, effectpool %p, errors %p, hresult %p.\n",
59 pump, effectpool, errors, hresult);
60
61 return E_NOTIMPL;
62}

◆ D3DX10PreprocessShaderFromMemory()

HRESULT WINAPI D3DX10PreprocessShaderFromMemory ( const char *  data,
SIZE_T  data_size,
const char *  filename,
const D3D10_SHADER_MACRO *  defines,
ID3DInclude *  include,
ID3DX10ThreadPump *  pump,
ID3D10Blob **  shader_text,
ID3D10Blob **  errors,
HRESULT *  hresult 
)

Definition at line 219 of file compiler.c.

222{
223 HRESULT hr;
224
225 TRACE("data %s, data_size %Iu, filename %s, defines %p, include %p, pump %p, shader_text %p, "
226 "errors %p, hresult %p.\n",
227 debugstr_an(data, data_size), data_size, debugstr_a(filename), defines, include, pump,
228 shader_text, errors, hresult);
229
230 if (!data)
231 return E_FAIL;
232
233 if (pump)
234 FIXME("Unimplemented ID3DX10ThreadPump handling.\n");
235
236 hr = D3DPreprocess(data, data_size, filename, defines, include, shader_text, errors);
237 if (hresult)
238 *hresult = hr;
239 return hr;
240}
HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename, const D3D_SHADER_MACRO *defines, ID3DInclude *include, ID3DBlob **shader, ID3DBlob **error_messages)
Definition: compiler.c:652