|
ReactOS 0.4.17-dev-966-gf06eace
|
#include <assert.h>#include <stdarg.h>#include "windef.h"#include "winbase.h"#include "wingdi.h"#include "winuser.h"#include "wine/debug.h"#include "d3d9.h"#include "d3d9on12.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 | COBJMACROS |
| #define | D3D9_MAX_VERTEX_SHADER_CONSTANTF 256 |
| #define | D3D9_MAX_TEXTURE_UNITS 20 |
| #define | D3D9_MAX_STREAMS 16 |
| #define | D3DPRESENTFLAGS_MASK 0x00000fffu |
| #define | D3D9_TEXTURE_MIPMAP_DIRTY 0x1 |
| #define | D3DFMT_RESZ MAKEFOURCC('R','E','S','Z') |
| #define | D3D9_RESZ_CODE 0x7fa05000 |
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 |
| #define COBJMACROS |
Definition at line 29 of file d3d9_private.h.
| #define D3D9_MAX_STREAMS 16 |
Definition at line 42 of file d3d9_private.h.
| #define D3D9_MAX_TEXTURE_UNITS 20 |
Definition at line 41 of file d3d9_private.h.
| #define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256 |
Definition at line 40 of file d3d9_private.h.
| #define D3D9_RESZ_CODE 0x7fa05000 |
Definition at line 49 of file d3d9_private.h.
| #define D3D9_TEXTURE_MIPMAP_DIRTY 0x1 |
Definition at line 46 of file d3d9_private.h.
| #define D3DFMT_RESZ MAKEFOURCC('R','E','S','Z') |
Definition at line 48 of file d3d9_private.h.
| #define D3DPRESENTFLAGS_MASK 0x00000fffu |
Definition at line 44 of file d3d9_private.h.
| Enumerator | |
|---|---|
| D3D9_DEVICE_STATE_OK | |
| D3D9_DEVICE_STATE_LOST | |
| D3D9_DEVICE_STATE_NOT_RESET | |
Definition at line 82 of file d3d9_private.h.
| void d3d9_caps_from_wined3dcaps | ( | const struct d3d9 * | d3d9, |
| unsigned int | adapter_ordinal, | ||
| D3DCAPS9 * | caps, | ||
| const struct wined3d_caps * | wined3d_caps | ||
| ) |
Definition at line 369 of file device.c.
Referenced by d3d9_device_GetDeviceCaps(), d3d9_GetDeviceCaps(), and device_init().
Definition at line 686 of file directx.c.
Referenced by Direct3DCreate9(), Direct3DCreate9Ex(), and Direct3DCreate9On12().
| void d3d9_resource_cleanup | ( | struct d3d9_resource * | resource | ) |
Definition at line 284 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 289 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 307 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 345 of file d3d9_main.c.
Referenced by d3d9_surface_create(), d3d9_texture_init(), indexbuffer_init(), vertexbuffer_init(), and volume_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 351 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 417 of file surface.c.
Referenced by d3d9_device_ColorFill(), d3d9_device_SetDepthStencilSurface(), and d3d9_device_SetRenderTarget().
| struct d3d9_surface * d3d9_surface_create | ( | struct wined3d_texture * | wined3d_texture, |
| unsigned int | sub_resource_idx, | ||
| IUnknown * | container | ||
| ) |
Definition at line 356 of file surface.c.
Referenced by d3d9_device_create_surface(), d3d9_device_CreateCubeTexture(), d3d9_device_CreateTexture(), d3d9_device_reset(), and d3d9_swapchain_create().
| struct d3d9_device * d3d9_surface_get_device | ( | const struct d3d9_surface * | surface | ) |
Definition at line 410 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 443 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, | ||
| unsigned int | swap_interval, | ||
| struct d3d9_swapchain ** | swapchain | ||
| ) |
Definition at line 399 of file swapchain.c.
Referenced by d3d9_device_CreateAdditionalSwapChain(), and device_init().
| HRESULT d3d9_texture_2d_init | ( | struct d3d9_texture * | texture, |
| struct d3d9_device * | device, | ||
| unsigned int | width, | ||
| unsigned int | height, | ||
| unsigned int | level_count, | ||
| DWORD | usage, | ||
| D3DFORMAT | format, | ||
| D3DPOOL | pool | ||
| ) |
Definition at line 1356 of file texture.c.
Referenced by d3d9_device_CreateTexture().
| HRESULT d3d9_texture_3d_init | ( | struct d3d9_texture * | texture, |
| struct d3d9_device * | device, | ||
| unsigned int | width, | ||
| unsigned int | height, | ||
| unsigned int | depth, | ||
| unsigned int | level_count, | ||
| DWORD | usage, | ||
| D3DFORMAT | format, | ||
| D3DPOOL | pool | ||
| ) |
Definition at line 1404 of file texture.c.
Referenced by d3d9_device_CreateVolumeTexture().
| HRESULT d3d9_texture_cube_init | ( | struct d3d9_texture * | texture, |
| struct d3d9_device * | device, | ||
| unsigned int | edge_length, | ||
| unsigned int | level_count, | ||
| DWORD | usage, | ||
| D3DFORMAT | format, | ||
| D3DPOOL | pool | ||
| ) |
Definition at line 1380 of file texture.c.
Referenced by d3d9_device_CreateCubeTexture().
| void d3d9_texture_flag_auto_gen_mipmap | ( | struct d3d9_texture * | texture | ) |
Definition at line 106 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 94 of file texture.c.
Referenced by d3d9_generate_auto_mipmaps(), d3d9_texture_2d_GenerateMipSubLevels(), and d3d9_texture_cube_GenerateMipSubLevels().
|
inlinestatic |
Definition at line 238 of file d3d9_private.h.
Referenced by d3d9_device_SetTexture(), d3d9_texture_2d_GetLOD(), d3d9_texture_2d_GetPriority(), d3d9_texture_2d_SetLOD(), d3d9_texture_2d_SetPriority(), d3d9_texture_3d_GetLOD(), d3d9_texture_3d_GetPriority(), d3d9_texture_3d_SetLOD(), d3d9_texture_3d_SetPriority(), d3d9_texture_cube_GetLOD(), d3d9_texture_cube_GetPriority(), d3d9_texture_cube_SetLOD(), d3d9_texture_cube_SetPriority(), d3d9_texture_decref(), d3d9_texture_gen_auto_mipmap(), d3d9_texture_incref(), and d3d9_texture_preload().
| HRESULT d3d9_vertex_declaration_create | ( | struct d3d9_device * | device, |
| const D3DVERTEXELEMENT9 * | elements, | ||
| struct d3d9_vertex_declaration ** | declaration | ||
| ) |
Definition at line 416 of file vertexdeclaration.c.
Referenced by d3d9_device_CreateVertexDeclaration(), and device_get_fvf_declaration().
| D3DFORMAT d3dformat_from_wined3dformat | ( | enum wined3d_format_id | format | ) |
Definition at line 33 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().
|
inlinestatic |
Definition at line 344 of file d3d9_private.h.
Definition at line 325 of file d3d9_private.h.
|
inlinestatic |
Definition at line 349 of file d3d9_private.h.
Referenced by d3d9_device_GetDisplayModeEx(), d3d9_EnumAdapterModesEx(), d3d9_GetAdapterDisplayModeEx(), and d3d9_swapchain_GetDisplayModeEx().
|
inlinestatic |
Definition at line 315 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 4714 of file device.c.
|
inlinestatic |
Definition at line 310 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_CreateRenderTargetEx(), 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_GetMaximumFrameLatency(), 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_GetRenderTargetData(), 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_SetMaximumFrameLatency(), 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_stateblock_Apply(), d3d9_stateblock_Capture(), 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 597 of file buffer.c.
| BOOL is_gdi_compat_wined3dformat | ( | enum wined3d_format_id | format | ) |
Definition at line 1770 of file device.c.
Referenced by d3d9_device_create_surface(), d3d9_texture_init(), and wined3d_swapchain_desc_from_d3d9().
Definition at line 354 of file d3d9_private.h.
Referenced by wined3daccess_from_d3dpool().
| HRESULT pixelshader_init | ( | struct d3d9_pixelshader * | shader, |
| struct d3d9_device * | device, | ||
| const DWORD * | byte_code | ||
| ) |
Definition at line 273 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, | ||
| DWORD | presentation_interval | ||
| ) |
Definition at line 242 of file device.c.
| HRESULT query_init | ( | struct d3d9_query * | query, |
| struct d3d9_device * | device, | ||
| D3DQUERYTYPE | type | ||
| ) |
Definition at line 182 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 175 of file stateblock.c.
Referenced by d3d9_device_CreateStateBlock(), d3d9_device_EndStateBlock(), and wined3d_stateblock_create().
| struct d3d9_texture * unsafe_impl_from_IDirect3DBaseTexture9 | ( | IDirect3DBaseTexture9 * | iface | ) |
Definition at line 1204 of file texture.c.
Referenced by d3d9_device_SetTexture(), d3d9_device_UpdateTexture(), and d3d9_surface_create().
| struct d3d9_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer9 | ( | IDirect3DIndexBuffer9 * | iface | ) |
Definition at line 654 of file buffer.c.
Referenced by d3d9_device_SetIndices().
| struct d3d9_pixelshader * unsafe_impl_from_IDirect3DPixelShader9 | ( | IDirect3DPixelShader9 * | iface | ) |
Definition at line 300 of file shader.c.
Referenced by d3d9_device_SetPixelShader().
| struct d3d9_surface * unsafe_impl_from_IDirect3DSurface9 | ( | IDirect3DSurface9 * | iface | ) |
Definition at line 450 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 347 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 297 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 157 of file shader.c.
Referenced by d3d9_device_SetVertexShader().
| HRESULT vdecl_convert_fvf | ( | DWORD | FVF, |
| D3DVERTEXELEMENT9 ** | ppVertexElements | ||
| ) |
Definition at line 58 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 277 of file buffer.c.
| HRESULT vertexshader_init | ( | struct d3d9_vertexshader * | shader, |
| struct d3d9_device * | device, | ||
| const DWORD * | byte_code | ||
| ) |
Definition at line 130 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 204 of file volume.c.
Definition at line 395 of file d3d9_private.h.
Referenced by d3d9_CheckDeviceFormat(), d3d9_texture_2d_init(), d3d9_texture_3d_init(), and d3d9_texture_cube_init().
|
inlinestatic |
Definition at line 412 of file d3d9_private.h.
|
inlinestatic |
Definition at line 407 of file d3d9_private.h.
|
inlinestatic |
Definition at line 417 of file d3d9_private.h.
Referenced by d3d9_device_reset(), d3d9_EnumAdapterModesEx(), and d3d9_GetAdapterModeCountEx().
Definition at line 385 of file d3d9_private.h.
Definition at line 361 of file d3d9_private.h.
| enum wined3d_format_id wined3dformat_from_d3dformat | ( | D3DFORMAT | format | ) |
Definition at line 84 of file device.c.
Referenced by d3d8_device_CreateDepthStencilSurface(), d3d8_device_CreateImageSurface(), d3d8_device_CreateRenderTarget(), d3d8_device_DrawIndexedPrimitiveUP(), d3d9_device_CreateDepthStencilSurface(), d3d9_device_CreateDepthStencilSurfaceEx(), d3d9_device_CreateOffscreenPlainSurface(), d3d9_device_CreateRenderTarget(), d3d9_device_CreateRenderTargetEx(), d3d9_device_DrawIndexedPrimitiveUP(), d3d9_device_reset(), wined3d_swapchain_desc_from_d3d8(), and wined3d_swapchain_desc_from_d3d9().
Definition at line 135 of file device.c.
|
extern |
Definition at line 29 of file device.c.
Referenced by d3d9_device_create_surface(), d3d9_texture_init(), query_init(), and vertexbuffer_init().