ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <stdint.h>
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/rbtree.h"
#include "d3dx9.h"
Go to the source code of this file.
Classes | |
struct | vec4 |
struct | volume |
struct | pixel_format_desc |
struct | d3dx_include_from_file |
struct | d3dx_const_param_eval_output |
struct | d3dx_const_tab |
struct | d3dx_regstore |
struct | d3dx_preshader |
struct | d3dx_param_eval |
struct | param_rb_entry |
struct | d3dx_parameter |
struct | d3dx_top_level_parameter |
struct | d3dx_shared_data |
struct | ctab_constant |
Macros | |
#define | NONAMELESSUNION |
#define | COBJMACROS |
#define | ULONG64_MAX (~(ULONG64)0) |
#define | SET_D3D_STATE_(manager, device, method, args...) |
#define | SET_D3D_STATE(base_effect, args...) SET_D3D_STATE_(base_effect->manager, base_effect->device, args) |
Enumerations | |
enum | format_type { FORMAT_ARGB , FORMAT_ARGBF16 , FORMAT_ARGBF , FORMAT_DXT , FORMAT_INDEX , FORMAT_UNKNOWN } |
enum | pres_reg_tables { PRES_REGTAB_IMMED , PRES_REGTAB_CONST , PRES_REGTAB_OCONST , PRES_REGTAB_OBCONST , PRES_REGTAB_OICONST , PRES_REGTAB_TEMP , PRES_REGTAB_COUNT , PRES_REGTAB_FIRST_SHADER = PRES_REGTAB_CONST } |
Variables | |
CRITICAL_SECTION from_file_mutex | DECLSPEC_HIDDEN |
#define COBJMACROS |
Definition at line 31 of file d3dx9_private.h.
#define NONAMELESSUNION |
Definition at line 26 of file d3dx9_private.h.
#define SET_D3D_STATE | ( | base_effect, | |
args... | |||
) | SET_D3D_STATE_(base_effect->manager, base_effect->device, args) |
Definition at line 402 of file d3dx9_private.h.
Definition at line 400 of file d3dx9_private.h.
Definition at line 34 of file d3dx9_private.h.
Enumerator | |
---|---|
FORMAT_ARGB | |
FORMAT_ARGBF16 | |
FORMAT_ARGBF | |
FORMAT_DXT | |
FORMAT_INDEX | |
FORMAT_UNKNOWN |
Definition at line 49 of file d3dx9_private.h.
Enumerator | |
---|---|
PRES_REGTAB_IMMED | |
PRES_REGTAB_CONST | |
PRES_REGTAB_OCONST | |
PRES_REGTAB_OBCONST | |
PRES_REGTAB_OICONST | |
PRES_REGTAB_TEMP | |
PRES_REGTAB_COUNT | |
PRES_REGTAB_FIRST_SHADER |
Definition at line 244 of file d3dx9_private.h.
void convert_argb_pixels | ( | const BYTE * | src, |
UINT | src_row_pitch, | ||
UINT | src_slice_pitch, | ||
const struct volume * | src_size, | ||
const struct pixel_format_desc * | src_format, | ||
BYTE * | dst, | ||
UINT | dst_row_pitch, | ||
UINT | dst_slice_pitch, | ||
const struct volume * | dst_size, | ||
const struct pixel_format_desc * | dst_format, | ||
D3DCOLOR | color_key, | ||
const PALETTEENTRY * | palette | ||
) |
Definition at line 1731 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), and D3DXSaveSurfaceToFileInMemory().
void copy_pixels | ( | const BYTE * | src, |
UINT | src_row_pitch, | ||
UINT | src_slice_pitch, | ||
BYTE * | dst, | ||
UINT | dst_row_pitch, | ||
UINT | dst_slice_pitch, | ||
const struct volume * | size, | ||
const struct pixel_format_desc * | format | ||
) |
Definition at line 1700 of file surface.c.
Referenced by BitmapImpl_CopyPixels(), BmpFrameDecode_CopyPixels(), D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), GifFrameDecode_CopyPixels(), IcoFrameDecode_CopyPixels(), save_dds_surface_to_memory(), and TgaDecoder_Frame_CopyPixels().
HRESULT d3dx_create_param_eval | ( | struct d3dx_effect * | effect, |
void * | byte_code, | ||
unsigned int | byte_code_size, | ||
D3DXPARAMETER_TYPE | type, | ||
struct d3dx_param_eval ** | peval, | ||
ULONG64 * | version_counter, | ||
const char ** | skip_constants, | ||
unsigned int | skip_constants_count | ||
) |
Definition at line 1233 of file preshader.c.
Referenced by d3dx_parse_array_selector(), and d3dx_parse_resource().
HRESULT d3dx_evaluate_parameter | ( | struct d3dx_param_eval * | peval, |
const struct d3dx_parameter * | param, | ||
void * | param_value | ||
) |
Definition at line 1723 of file preshader.c.
Referenced by d3dx9_get_param_value_ptr().
void d3dx_free_param_eval | ( | struct d3dx_param_eval * | peval | ) |
Definition at line 1358 of file preshader.c.
Referenced by d3dx_create_param_eval(), and free_parameter().
HRESULT d3dx_param_eval_set_shader_constants | ( | ID3DXEffectStateManager * | manager, |
struct IDirect3DDevice9 * | device, | ||
struct d3dx_param_eval * | peval, | ||
BOOL | update_all | ||
) |
Definition at line 1752 of file preshader.c.
Referenced by d3dx_set_shader_constants().
const struct ctab_constant * d3dx_shader_get_ctab_constant | ( | ID3DXConstantTable * | iface, |
D3DXHANDLE | constant | ||
) |
Definition at line 984 of file shader.c.
Referenced by get_ctab_constant_desc().
const char * debug_d3dxparameter_class | ( | D3DXPARAMETER_CLASS | c | ) |
Definition at line 237 of file util.c.
Referenced by d3dx_effect_GetMatrix(), d3dx_effect_GetMatrixArray(), d3dx_effect_GetMatrixPointerArray(), d3dx_effect_GetMatrixTranspose(), d3dx_effect_GetMatrixTransposeArray(), d3dx_effect_GetMatrixTransposePointerArray(), d3dx_effect_GetVector(), d3dx_effect_GetVectorArray(), d3dx_effect_SetBoolArray(), d3dx_effect_SetFloatArray(), d3dx_effect_SetIntArray(), d3dx_effect_SetMatrix(), d3dx_effect_SetMatrixArray(), d3dx_effect_SetMatrixPointerArray(), d3dx_effect_SetMatrixTranspose(), d3dx_effect_SetMatrixTransposeArray(), d3dx_effect_SetMatrixTransposePointerArray(), d3dx_effect_SetVector(), d3dx_effect_SetVectorArray(), d3dx_parse_effect_typedef(), d3dx_parse_init_value(), d3dx_parse_resource(), d3dx_parse_value(), ID3DXConstantTableImpl_SetValue(), parse_ctab_constant_type(), set(), set_matrix_array(), set_matrix_pointer_array(), set_scalar(), set_scalar_array(), set_vector(), and set_vector_array().
const char * debug_d3dxparameter_registerset | ( | D3DXREGISTER_SET | r | ) |
Definition at line 283 of file util.c.
Referenced by ID3DXConstantTableImpl_SetDefaults(), parse_ctab_constant_type(), and set().
const char * debug_d3dxparameter_type | ( | D3DXPARAMETER_TYPE | t | ) |
Definition at line 253 of file util.c.
Referenced by d3dx_effect_GetValue(), d3dx_parse_effect_typedef(), d3dx_parse_resource(), d3dx_parse_value(), free_parameter(), free_parameter_object_data(), parse_ctab_constant_type(), and set_value().
Definition at line 2203 of file math.c.
Referenced by D3DXFloat16To32Array(), format_to_vec4(), generic_float16_2(), generic_float16_4(), and load_numbered_arrays().
Definition at line 2102 of file math.c.
Referenced by convert_r32_float_r16_float(), D3DXFloat32To16Array(), fill_texture(), and format_from_vec4().
|
inlinestatic |
Definition at line 141 of file d3dx9_private.h.
Referenced by debugstr_jsval(), equal_values(), get_float(), get_int(), interp_end_finally(), jsval_strict_equal(), jsval_to_variant(), set_number(), stringify(), to_boolean(), to_number(), to_object(), and to_string().
|
inlinestatic |
Definition at line 177 of file d3dx9_private.h.
Referenced by set_number().
const struct pixel_format_desc * get_format_info | ( | D3DFORMAT | format | ) |
Definition at line 217 of file util.c.
Referenced by calculate_dds_surface_size(), check_texture_requirements(), convert_argb_pixels(), D3DXFillCubeTexture(), D3DXFillTexture(), D3DXFillVolumeTexture(), D3DXLoadSurfaceFromFileInMemory(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromSurface(), D3DXLoadVolumeFromMemory(), D3DXSaveSurfaceToFileInMemory(), point_filter_argb_pixels(), and save_dds_surface_to_memory().
const struct pixel_format_desc * get_format_info_idx | ( | int | idx | ) |
|
inlinestatic |
Definition at line 158 of file d3dx9_private.h.
Referenced by set_number().
struct d3dx_parameter * get_parameter_by_name | ( | struct d3dx_effect * | effect, |
struct d3dx_parameter * | parameter, | ||
const char * | name | ||
) |
Definition at line 1026 of file effect.c.
Referenced by d3dx9_effect_init(), d3dx_effect_GetParameterByName(), d3dx_parse_array_selector(), d3dx_parse_resource(), get_annotation_by_name(), get_constants_desc(), get_parameter_by_name(), get_parameter_element_by_name(), and get_valid_parameter().
|
inlinestatic |
Definition at line 79 of file d3dx9_private.h.
Referenced by D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), and D3DXSaveSurfaceToFileInMemory().
|
inlinestatic |
Definition at line 87 of file d3dx9_private.h.
Referenced by D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), and D3DXSaveSurfaceToFileInMemory().
|
inlinestatic |
Definition at line 387 of file d3dx9_private.h.
Referenced by d3dx9_get_param_value_ptr(), and set_constants().
BOOL is_param_eval_input_dirty | ( | struct d3dx_param_eval * | peval, |
ULONG64 | update_version | ||
) |
|
inlinestatic |
Definition at line 224 of file d3dx9_private.h.
Referenced by d3dx_effect_GetValue(), d3dx_effect_SetValue(), d3dx_pool_sync_shared_parameter(), d3dx_set_shader_constants(), free_parameter_data(), get_constants_desc(), walk_parameter_dep(), and walk_state_dep().
|
inlinestatic |
Definition at line 377 of file d3dx9_private.h.
Referenced by is_const_tab_input_dirty(), and is_param_dirty().
|
inlinestatic |
Definition at line 361 of file d3dx9_private.h.
Referenced by add_param_to_tree(), d3dx_effect_GetParameterDesc(), get_annotation_from_object(), and get_constants_desc().
HRESULT load_cube_texture_from_dds | ( | IDirect3DCubeTexture9 * | cube_texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Referenced by D3DXCreateCubeTextureFromFileInMemoryEx().
Definition at line 170 of file util.c.
Referenced by D3DXAssembleShaderFromResourceA(), D3DXAssembleShaderFromResourceW(), D3DXCompileShaderFromResourceA(), D3DXCompileShaderFromResourceW(), D3DXCreateEffectCompilerFromResourceA(), D3DXCreateEffectCompilerFromResourceW(), D3DXCreateEffectFromResourceExA(), D3DXCreateEffectFromResourceExW(), D3DXCreateTextureFromResourceExA(), D3DXCreateTextureFromResourceExW(), D3DXGetImageInfoFromResourceA(), D3DXGetImageInfoFromResourceW(), D3DXLoadMeshFromXResource(), D3DXLoadSurfaceFromResourceA(), D3DXLoadSurfaceFromResourceW(), D3DXPreprocessShaderFromResourceA(), and D3DXPreprocessShaderFromResourceW().
HRESULT load_texture_from_dds | ( | IDirect3DTexture9 * | texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
const D3DXIMAGE_INFO * | src_info, | ||
unsigned int | skip_levels, | ||
unsigned int * | loaded_miplevels | ||
) |
Definition at line 737 of file surface.c.
Referenced by D3DXCreateTextureFromFileInMemoryEx().
HRESULT load_volume_from_dds | ( | IDirect3DVolume9 * | dst_volume, |
const PALETTEENTRY * | dst_palette, | ||
const D3DBOX * | dst_box, | ||
const void * | src_data, | ||
const D3DBOX * | src_box, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 719 of file surface.c.
Referenced by D3DXLoadVolumeFromFileInMemory().
HRESULT load_volume_texture_from_dds | ( | IDirect3DVolumeTexture9 * | volume_texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
DWORD | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 847 of file surface.c.
Referenced by D3DXCreateVolumeTextureFromFileInMemoryEx().
HRESULT lock_surface | ( | IDirect3DSurface9 * | surface, |
const RECT * | surface_rect, | ||
D3DLOCKED_RECT * | lock, | ||
IDirect3DSurface9 ** | temp_surface, | ||
BOOL | write | ||
) |
Definition at line 209 of file surface.c.
Referenced by D3DXFillTexture(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromSurface(), D3DXSaveSurfaceToFileInMemory(), and save_dds_surface_to_memory().
Definition at line 232 of file d3dx9_private.h.
Referenced by check_texture_requirements(), D3DXCheckCubeTextureRequirements(), D3DXCheckVolumeTextureRequirements(), D3DXCreateCubeTextureFromFileInMemoryEx(), D3DXCreateFontIndirectW(), D3DXCreateTextureFromFileInMemoryEx(), and D3DXCreateVolumeTextureFromFileInMemoryEx().
Definition at line 120 of file util.c.
Referenced by D3DXCreateCubeTextureFromFileA(), D3DXCreateCubeTextureFromFileExA(), D3DXCreateCubeTextureFromFileExW(), D3DXCreateCubeTextureFromFileW(), D3DXCreateEffectCompilerFromFileW(), D3DXCreateTextureFromFileExW(), D3DXCreateVolumeTextureFromFileA(), D3DXCreateVolumeTextureFromFileExA(), D3DXCreateVolumeTextureFromFileExW(), D3DXCreateVolumeTextureFromFileW(), D3DXGetImageInfoFromFileW(), D3DXLoadMeshFromXW(), D3DXLoadMeshHierarchyFromXW(), D3DXLoadSurfaceFromFileW(), and D3DXLoadVolumeFromFileW().
Definition at line 372 of file d3dx9_private.h.
Referenced by d3dx_evaluate_parameter(), d3dx_param_eval_set_shader_constants(), next_effect_update_version(), and set_dirty().
void point_filter_argb_pixels | ( | const BYTE * | src, |
UINT | src_row_pitch, | ||
UINT | src_slice_pitch, | ||
const struct volume * | src_size, | ||
const struct pixel_format_desc * | src_format, | ||
BYTE * | dst, | ||
UINT | dst_row_pitch, | ||
UINT | dst_slice_pitch, | ||
const struct volume * | dst_size, | ||
const struct pixel_format_desc * | dst_format, | ||
D3DCOLOR | color_key, | ||
const PALETTEENTRY * | palette | ||
) |
Definition at line 1839 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), and D3DXLoadVolumeFromMemory().
HRESULT save_dds_texture_to_memory | ( | ID3DXBuffer ** | dst_buffer, |
IDirect3DBaseTexture9 * | src_texture, | ||
const PALETTEENTRY * | src_palette | ||
) |
Definition at line 672 of file surface.c.
Referenced by D3DXSaveTextureToFileInMemory().
|
inlinestatic |
Definition at line 196 of file d3dx9_private.h.
Referenced by d3dx_effect_GetBool(), d3dx_effect_GetBoolArray(), d3dx_effect_GetFloat(), d3dx_effect_GetFloatArray(), d3dx_effect_GetInt(), d3dx_effect_GetIntArray(), d3dx_effect_SetBool(), d3dx_effect_SetBoolArray(), d3dx_effect_SetFloat(), d3dx_effect_SetFloatArray(), d3dx_effect_SetInt(), d3dx_effect_SetIntArray(), d3dx_evaluate_parameter(), get_matrix(), get_vector(), set(), set_matrix(), set_matrix_transpose(), set_vector(), and test_effect_parameter_value().
|
inlinestatic |
Definition at line 367 of file d3dx9_private.h.
Referenced by d3dx_effect_GetParameterDesc(), get_annotation_from_object(), and is_const_tab_input_dirty().
HRESULT unlock_surface | ( | IDirect3DSurface9 * | surface, |
const RECT * | surface_rect, | ||
IDirect3DSurface9 * | temp_surface, | ||
BOOL | update | ||
) |
Definition at line 267 of file surface.c.
Referenced by D3DXFillTexture(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromSurface(), D3DXSaveSurfaceToFileInMemory(), and save_dds_surface_to_memory().
HRESULT write_buffer_to_file | ( | const WCHAR * | filename, |
ID3DXBuffer * | buffer | ||
) |
Definition at line 186 of file util.c.
Referenced by D3DXSaveSurfaceToFileA(), D3DXSaveSurfaceToFileW(), D3DXSaveTextureToFileA(), and D3DXSaveTextureToFileW().
|
extern |
Definition at line 77 of file d3dx9_private.h.