ReactOS 0.4.16-dev-197-g92996da
|
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "d3d9.h"
#include "wine/wined3d.h"
Go to the source code of this file.
Classes | |
struct | d3d9 |
struct | fvf_declaration |
struct | d3d9_device |
struct | d3d9_resource |
struct | d3d9_volume |
struct | d3d9_swapchain |
struct | d3d9_surface |
struct | d3d9_vertexbuffer |
struct | d3d9_indexbuffer |
struct | d3d9_texture |
struct | d3d9_stateblock |
struct | d3d9_vertex_declaration |
struct | d3d9_vertexshader |
struct | d3d9_pixelshader |
struct | d3d9_query |
Macros | |
#define | NONAMELESSUNION |
#define | NONAMELESSSTRUCT |
#define | COBJMACROS |
#define | D3D9_MAX_VERTEX_SHADER_CONSTANTF 256 |
#define | D3D9_MAX_TEXTURE_UNITS 20 |
#define | D3DPRESENTFLAGS_MASK 0x00000fffu |
#define | D3D9_TEXTURE_MIPMAP_DIRTY 0x1 |
Enumerations | |
enum | d3d9_device_state { D3D9_DEVICE_STATE_OK , D3D9_DEVICE_STATE_LOST , D3D9_DEVICE_STATE_NOT_RESET } |
Variables | |
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops | DECLSPEC_HIDDEN |
#define COBJMACROS |
Definition at line 31 of file d3d9_private.h.
#define D3D9_MAX_TEXTURE_UNITS 20 |
Definition at line 44 of file d3d9_private.h.
#define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256 |
Definition at line 43 of file d3d9_private.h.
#define D3D9_TEXTURE_MIPMAP_DIRTY 0x1 |
Definition at line 48 of file d3d9_private.h.
#define D3DPRESENTFLAGS_MASK 0x00000fffu |
Definition at line 46 of file d3d9_private.h.
#define NONAMELESSSTRUCT |
Definition at line 30 of file d3d9_private.h.
#define NONAMELESSUNION |
Definition at line 29 of file d3d9_private.h.
Enumerator | |
---|---|
D3D9_DEVICE_STATE_OK | |
D3D9_DEVICE_STATE_LOST | |
D3D9_DEVICE_STATE_NOT_RESET |
Definition at line 77 of file d3d9_private.h.
HRESULT cubetexture_init | ( | struct d3d9_texture * | texture, |
struct d3d9_device * | device, | ||
UINT | edge_length, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1369 of file texture.c.
Definition at line 577 of file directx.c.
Referenced by Direct3DCreate9(), and Direct3DCreate9Ex().
void d3d9_resource_cleanup | ( | struct d3d9_resource * | resource | ) |
Definition at line 155 of file d3d9_main.c.
Referenced by d3d9_indexbuffer_wined3d_object_destroyed(), d3d9_texture_wined3d_object_destroyed(), d3d9_vertexbuffer_wined3d_object_destroyed(), surface_wined3d_object_destroyed(), and volume_wined3d_object_destroyed().
HRESULT d3d9_resource_free_private_data | ( | struct d3d9_resource * | resource, |
const GUID * | guid | ||
) |
Definition at line 160 of file d3d9_main.c.
Referenced by d3d9_indexbuffer_FreePrivateData(), d3d9_surface_FreePrivateData(), d3d9_texture_2d_FreePrivateData(), d3d9_texture_3d_FreePrivateData(), d3d9_texture_cube_FreePrivateData(), d3d9_vertexbuffer_FreePrivateData(), and d3d9_volume_FreePrivateData().
HRESULT d3d9_resource_get_private_data | ( | struct d3d9_resource * | resource, |
const GUID * | guid, | ||
void * | data, | ||
DWORD * | data_size | ||
) |
Definition at line 178 of file d3d9_main.c.
Referenced by d3d9_indexbuffer_GetPrivateData(), d3d9_surface_GetPrivateData(), d3d9_texture_2d_GetPrivateData(), d3d9_texture_3d_GetPrivateData(), d3d9_texture_cube_GetPrivateData(), d3d9_vertexbuffer_GetPrivateData(), and d3d9_volume_GetPrivateData().
void d3d9_resource_init | ( | struct d3d9_resource * | resource | ) |
Definition at line 216 of file d3d9_main.c.
Referenced by cubetexture_init(), indexbuffer_init(), surface_init(), texture_init(), vertexbuffer_init(), volume_init(), and volumetexture_init().
HRESULT d3d9_resource_set_private_data | ( | struct d3d9_resource * | resource, |
const GUID * | guid, | ||
const void * | data, | ||
DWORD | data_size, | ||
DWORD | flags | ||
) |
Definition at line 222 of file d3d9_main.c.
Referenced by d3d9_indexbuffer_SetPrivateData(), d3d9_surface_SetPrivateData(), d3d9_texture_2d_SetPrivateData(), d3d9_texture_3d_SetPrivateData(), d3d9_texture_cube_SetPrivateData(), d3d9_vertexbuffer_SetPrivateData(), and d3d9_volume_SetPrivateData().
struct wined3d_rendertarget_view * d3d9_surface_acquire_rendertarget_view | ( | struct d3d9_surface * | surface | ) |
Definition at line 407 of file surface.c.
Referenced by d3d9_device_ColorFill(), d3d9_device_SetDepthStencilSurface(), and d3d9_device_SetRenderTarget().
struct d3d9_device * d3d9_surface_get_device | ( | const struct d3d9_surface * | surface | ) |
Definition at line 400 of file surface.c.
Referenced by d3d9_device_SetRenderTarget().
void d3d9_surface_release_rendertarget_view | ( | struct d3d9_surface * | surface, |
struct wined3d_rendertarget_view * | rtv | ||
) |
Definition at line 433 of file surface.c.
Referenced by d3d9_device_ColorFill(), d3d9_device_SetDepthStencilSurface(), and d3d9_device_SetRenderTarget().
HRESULT d3d9_swapchain_create | ( | struct d3d9_device * | device, |
struct wined3d_swapchain_desc * | desc, | ||
struct d3d9_swapchain ** | swapchain | ||
) |
Definition at line 371 of file swapchain.c.
Referenced by d3d9_device_CreateAdditionalSwapChain(), and device_parent_create_swapchain().
void d3d9_texture_flag_auto_gen_mipmap | ( | struct d3d9_texture * | texture | ) |
Definition at line 108 of file texture.c.
Referenced by d3d9_device_ColorFill(), d3d9_device_StretchRect(), d3d9_device_UpdateSurface(), d3d9_device_UpdateTexture(), d3d9_rts_flag_auto_gen_mipmap(), d3d9_surface_ReleaseDC(), and d3d9_surface_UnlockRect().
void d3d9_texture_gen_auto_mipmap | ( | struct d3d9_texture * | texture | ) |
Definition at line 99 of file texture.c.
Referenced by d3d9_generate_auto_mipmaps(), d3d9_texture_2d_GenerateMipSubLevels(), and d3d9_texture_cube_GenerateMipSubLevels().
HRESULT d3d9_vertex_declaration_create | ( | struct d3d9_device * | device, |
const D3DVERTEXELEMENT9 * | elements, | ||
struct d3d9_vertex_declaration ** | declaration | ||
) |
Definition at line 415 of file vertexdeclaration.c.
Referenced by d3d9_device_CreateVertexDeclaration(), and device_get_fvf_declaration().
void d3dcaps_from_wined3dcaps | ( | D3DCAPS9 * | caps, |
const WINED3DCAPS * | wined3d_caps | ||
) |
Definition at line 317 of file device.c.
D3DFORMAT d3dformat_from_wined3dformat | ( | enum wined3d_format_id | format | ) |
Definition at line 44 of file device.c.
Referenced by d3d8_device_GetDisplayMode(), d3d9_device_GetDisplayMode(), d3d9_device_GetDisplayModeEx(), d3d9_device_reset(), d3d9_device_UpdateSurface(), and present_parameters_from_wined3d_swapchain_desc().
Definition at line 299 of file d3d9_private.h.
Definition at line 294 of file d3d9_private.h.
HRESULT device_init | ( | struct d3d9_device * | device, |
struct d3d9 * | parent, | ||
struct wined3d * | wined3d, | ||
UINT | adapter, | ||
D3DDEVTYPE | device_type, | ||
HWND | focus_window, | ||
DWORD | flags, | ||
D3DPRESENT_PARAMETERS * | parameters, | ||
D3DDISPLAYMODEEX * | mode | ||
) |
Definition at line 4174 of file device.c.
|
inlinestatic |
Definition at line 289 of file d3d9_private.h.
Referenced by d3d9_device_AddRef(), d3d9_device_BeginScene(), d3d9_device_BeginStateBlock(), d3d9_device_CheckDeviceState(), d3d9_device_Clear(), d3d9_device_ColorFill(), d3d9_device_CreateAdditionalSwapChain(), d3d9_device_CreateCubeTexture(), d3d9_device_CreateDepthStencilSurface(), d3d9_device_CreateDepthStencilSurfaceEx(), d3d9_device_CreateIndexBuffer(), d3d9_device_CreateOffscreenPlainSurface(), d3d9_device_CreatePixelShader(), d3d9_device_CreateQuery(), d3d9_device_CreateRenderTarget(), d3d9_device_CreateStateBlock(), d3d9_device_CreateTexture(), d3d9_device_CreateVertexBuffer(), d3d9_device_CreateVertexDeclaration(), d3d9_device_CreateVertexShader(), d3d9_device_CreateVolumeTexture(), d3d9_device_DrawIndexedPrimitive(), d3d9_device_DrawIndexedPrimitiveUP(), d3d9_device_DrawPrimitive(), d3d9_device_DrawPrimitiveUP(), d3d9_device_EndScene(), d3d9_device_EndStateBlock(), d3d9_device_EvictManagedResources(), d3d9_device_GetAvailableTextureMem(), d3d9_device_GetBackBuffer(), d3d9_device_GetClipPlane(), d3d9_device_GetClipStatus(), d3d9_device_GetCreationParameters(), d3d9_device_GetDepthStencilSurface(), d3d9_device_GetDeviceCaps(), d3d9_device_GetDirect3D(), d3d9_device_GetDisplayMode(), d3d9_device_GetDisplayModeEx(), d3d9_device_GetFrontBufferData(), d3d9_device_GetFVF(), d3d9_device_GetGammaRamp(), d3d9_device_GetIndices(), d3d9_device_GetLight(), d3d9_device_GetLightEnable(), d3d9_device_GetMaterial(), d3d9_device_GetNPatchMode(), d3d9_device_GetNumberOfSwapChains(), d3d9_device_GetPixelShader(), d3d9_device_GetPixelShaderConstantB(), d3d9_device_GetPixelShaderConstantF(), d3d9_device_GetPixelShaderConstantI(), d3d9_device_GetRasterStatus(), d3d9_device_GetRenderState(), d3d9_device_GetRenderTarget(), d3d9_device_GetSamplerState(), d3d9_device_GetScissorRect(), d3d9_device_GetSoftwareVertexProcessing(), d3d9_device_GetStreamSource(), d3d9_device_GetStreamSourceFreq(), d3d9_device_GetSwapChain(), d3d9_device_GetTexture(), d3d9_device_GetTextureStageState(), d3d9_device_GetTransform(), d3d9_device_GetVertexDeclaration(), d3d9_device_GetVertexShader(), d3d9_device_GetVertexShaderConstantB(), d3d9_device_GetVertexShaderConstantF(), d3d9_device_GetVertexShaderConstantI(), d3d9_device_GetViewport(), d3d9_device_LightEnable(), d3d9_device_MultiplyTransform(), d3d9_device_Present(), d3d9_device_PresentEx(), d3d9_device_ProcessVertices(), d3d9_device_QueryInterface(), d3d9_device_Release(), d3d9_device_Reset(), d3d9_device_ResetEx(), d3d9_device_SetClipPlane(), d3d9_device_SetClipStatus(), d3d9_device_SetCursorPosition(), d3d9_device_SetCursorProperties(), d3d9_device_SetDepthStencilSurface(), d3d9_device_SetDialogBoxMode(), d3d9_device_SetFVF(), d3d9_device_SetGammaRamp(), d3d9_device_SetIndices(), d3d9_device_SetLight(), d3d9_device_SetMaterial(), d3d9_device_SetNPatchMode(), d3d9_device_SetPixelShader(), d3d9_device_SetPixelShaderConstantB(), d3d9_device_SetPixelShaderConstantF(), d3d9_device_SetPixelShaderConstantI(), d3d9_device_SetRenderState(), d3d9_device_SetRenderTarget(), d3d9_device_SetSamplerState(), d3d9_device_SetScissorRect(), d3d9_device_SetSoftwareVertexProcessing(), d3d9_device_SetStreamSource(), d3d9_device_SetStreamSourceFreq(), d3d9_device_SetTexture(), d3d9_device_SetTextureStageState(), d3d9_device_SetTransform(), d3d9_device_SetVertexDeclaration(), d3d9_device_SetVertexShader(), d3d9_device_SetVertexShaderConstantB(), d3d9_device_SetVertexShaderConstantF(), d3d9_device_SetVertexShaderConstantI(), d3d9_device_SetViewport(), d3d9_device_ShowCursor(), d3d9_device_StretchRect(), d3d9_device_TestCooperativeLevel(), d3d9_device_UpdateSurface(), d3d9_device_UpdateTexture(), d3d9_device_ValidateDevice(), d3d9_surface_get_device(), d3d9_swapchain_Present(), and d3d9_swapchain_QueryInterface().
HRESULT indexbuffer_init | ( | struct d3d9_indexbuffer * | buffer, |
struct d3d9_device * | device, | ||
UINT | size, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 569 of file buffer.c.
BOOL is_gdi_compat_wined3dformat | ( | enum wined3d_format_id | format | ) |
Definition at line 1389 of file device.c.
Referenced by cubetexture_init(), d3d9_device_create_surface(), device_parent_create_swapchain_texture(), and texture_init().
HRESULT pixelshader_init | ( | struct d3d9_pixelshader * | shader, |
struct d3d9_device * | device, | ||
const DWORD * | byte_code | ||
) |
Definition at line 291 of file shader.c.
Referenced by d3d9_device_CreatePixelShader().
void present_parameters_from_wined3d_swapchain_desc | ( | D3DPRESENT_PARAMETERS * | present_parameters, |
const struct wined3d_swapchain_desc * | swapchain_desc | ||
) |
Definition at line 233 of file device.c.
HRESULT query_init | ( | struct d3d9_query * | query, |
struct d3d9_device * | device, | ||
D3DQUERYTYPE | type | ||
) |
Definition at line 184 of file query.c.
Referenced by d3d9_device_CreateQuery().
HRESULT stateblock_init | ( | struct d3d9_stateblock * | stateblock, |
struct d3d9_device * | device, | ||
D3DSTATEBLOCKTYPE | type, | ||
struct wined3d_stateblock * | wined3d_stateblock | ||
) |
Definition at line 134 of file stateblock.c.
Referenced by d3d9_device_CreateStateBlock(), d3d9_device_EndStateBlock(), and wined3d_stateblock_create().
void surface_init | ( | struct d3d9_surface * | surface, |
struct wined3d_texture * | wined3d_texture, | ||
unsigned int | sub_resource_idx, | ||
const struct wined3d_parent_ops ** | parent_ops | ||
) |
Definition at line 355 of file surface.c.
HRESULT texture_init | ( | struct d3d9_texture * | texture, |
struct d3d9_device * | device, | ||
UINT | width, | ||
UINT | height, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1297 of file texture.c.
struct d3d9_texture * unsafe_impl_from_IDirect3DBaseTexture9 | ( | IDirect3DBaseTexture9 * | iface | ) |
Definition at line 1269 of file texture.c.
Referenced by d3d9_device_SetTexture(), d3d9_device_UpdateTexture(), and surface_init().
struct d3d9_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer9 | ( | IDirect3DIndexBuffer9 * | iface | ) |
Definition at line 605 of file buffer.c.
Referenced by d3d9_device_SetIndices().
struct d3d9_pixelshader * unsafe_impl_from_IDirect3DPixelShader9 | ( | IDirect3DPixelShader9 * | iface | ) |
Definition at line 323 of file shader.c.
Referenced by d3d9_device_SetPixelShader().
struct d3d9_surface * unsafe_impl_from_IDirect3DSurface9 | ( | IDirect3DSurface9 * | iface | ) |
Definition at line 440 of file surface.c.
Referenced by d3d9_device_ColorFill(), d3d9_device_GetFrontBufferData(), d3d9_device_GetRenderTargetData(), d3d9_device_SetCursorProperties(), d3d9_device_SetDepthStencilSurface(), d3d9_device_SetRenderTarget(), d3d9_device_StretchRect(), d3d9_device_UpdateSurface(), and d3d9_swapchain_GetFrontBufferData().
struct d3d9_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer9 | ( | IDirect3DVertexBuffer9 * | iface | ) |
Definition at line 314 of file buffer.c.
Referenced by d3d9_device_ProcessVertices(), and d3d9_device_SetStreamSource().
struct d3d9_vertex_declaration * unsafe_impl_from_IDirect3DVertexDeclaration9 | ( | IDirect3DVertexDeclaration9 * | iface | ) |
Definition at line 302 of file vertexdeclaration.c.
Referenced by d3d9_device_ProcessVertices(), and d3d9_device_SetVertexDeclaration().
struct d3d9_vertexshader * unsafe_impl_from_IDirect3DVertexShader9 | ( | IDirect3DVertexShader9 * | iface | ) |
Definition at line 169 of file shader.c.
Referenced by d3d9_device_SetVertexShader().
HRESULT vdecl_convert_fvf | ( | DWORD | FVF, |
D3DVERTEXELEMENT9 ** | ppVertexElements | ||
) |
Definition at line 59 of file vertexdeclaration.c.
Referenced by device_get_fvf_declaration().
HRESULT vertexbuffer_init | ( | struct d3d9_vertexbuffer * | buffer, |
struct d3d9_device * | device, | ||
UINT | size, | ||
UINT | usage, | ||
DWORD | fvf, | ||
D3DPOOL | pool | ||
) |
Definition at line 274 of file buffer.c.
HRESULT vertexshader_init | ( | struct d3d9_vertexshader * | shader, |
struct d3d9_device * | device, | ||
const DWORD * | byte_code | ||
) |
Definition at line 137 of file shader.c.
Referenced by d3d9_device_CreateVertexShader().
void volume_init | ( | struct d3d9_volume * | volume, |
struct wined3d_texture * | wined3d_texture, | ||
unsigned int | sub_resource_idx, | ||
const struct wined3d_parent_ops ** | parent_ops | ||
) |
Definition at line 209 of file volume.c.
HRESULT volumetexture_init | ( | struct d3d9_texture * | texture, |
struct d3d9_device * | device, | ||
UINT | width, | ||
UINT | height, | ||
UINT | depth, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1441 of file texture.c.
Definition at line 315 of file d3d9_private.h.
enum wined3d_format_id wined3dformat_from_d3dformat | ( | D3DFORMAT | format | ) |
Definition at line 94 of file device.c.
Referenced by d3d8_device_create_surface(), d3d8_device_DrawIndexedPrimitiveUP(), d3d9_device_create_surface(), d3d9_device_CreateTexture(), d3d9_device_DrawIndexedPrimitiveUP(), d3d9_device_reset(), and wined3d_swapchain_desc_from_present_parameters().
Definition at line 144 of file device.c.
Definition at line 334 of file d3d9_private.h.
Referenced by cubetexture_init(), texture_init(), and volumetexture_init().
|
extern |
Definition at line 289 of file d3dcompiler_private.h.