ReactOS 0.4.16-dev-311-g9382aa2
|
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "d3d8.h"
#include "wine/wined3d.h"
Go to the source code of this file.
Classes | |
struct | d3d8 |
struct | d3d8_handle_entry |
struct | d3d8_handle_table |
struct | FvfToDecl |
struct | d3d8_device |
struct | d3d8_resource |
struct | d3d8_volume |
struct | d3d8_swapchain |
struct | d3d8_surface |
struct | d3d8_vertexbuffer |
struct | d3d8_indexbuffer |
struct | d3d8_texture |
struct | d3d8_vertex_declaration |
struct | d3d8_vertex_shader |
struct | d3d8_pixel_shader |
Macros | |
#define | NONAMELESSUNION |
#define | NONAMELESSSTRUCT |
#define | COBJMACROS |
#define | D3DPRESENTFLAGS_MASK 0x00000fffu |
#define | VS_HIGHESTFIXEDFXF 0xF0000000 |
#define | D3D8_INITIAL_HANDLE_TABLE_SIZE 64 |
#define | D3D8_INVALID_HANDLE ~0U |
#define | D3D8_MAX_VERTEX_SHADER_CONSTANTF 256 |
Enumerations | |
enum | d3d8_handle_type { D3D8_HANDLE_FREE , D3D8_HANDLE_VS , D3D8_HANDLE_PS , D3D8_HANDLE_SB } |
enum | d3d8_device_state { D3D8_DEVICE_STATE_OK , D3D8_DEVICE_STATE_LOST , D3D8_DEVICE_STATE_NOT_RESET } |
#define COBJMACROS |
Definition at line 31 of file d3d8_private.h.
#define D3D8_INITIAL_HANDLE_TABLE_SIZE 64 |
Definition at line 60 of file d3d8_private.h.
#define D3D8_INVALID_HANDLE ~0U |
Definition at line 61 of file d3d8_private.h.
#define D3D8_MAX_VERTEX_SHADER_CONSTANTF 256 |
Definition at line 262 of file d3d8_private.h.
#define D3DPRESENTFLAGS_MASK 0x00000fffu |
Definition at line 40 of file d3d8_private.h.
#define NONAMELESSSTRUCT |
Definition at line 30 of file d3d8_private.h.
#define NONAMELESSUNION |
Definition at line 29 of file d3d8_private.h.
#define VS_HIGHESTFIXEDFXF 0xF0000000 |
Definition at line 43 of file d3d8_private.h.
Enumerator | |
---|---|
D3D8_DEVICE_STATE_OK | |
D3D8_DEVICE_STATE_LOST | |
D3D8_DEVICE_STATE_NOT_RESET |
Definition at line 91 of file d3d8_private.h.
Enumerator | |
---|---|
D3D8_HANDLE_FREE | |
D3D8_HANDLE_VS | |
D3D8_HANDLE_PS | |
D3D8_HANDLE_SB |
Definition at line 63 of file d3d8_private.h.
HRESULT cubetexture_init | ( | struct d3d8_texture * | texture, |
struct d3d8_device * | device, | ||
UINT | edge_length, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1142 of file texture.c.
Referenced by d3d8_device_CreateCubeTexture(), and d3d9_device_CreateCubeTexture().
Definition at line 415 of file directx.c.
Referenced by Direct3DCreate8().
void d3d8_pixel_shader_destroy | ( | struct d3d8_pixel_shader * | shader | ) |
Definition at line 148 of file shader.c.
Referenced by d3d8_device_DeletePixelShader().
HRESULT d3d8_pixel_shader_init | ( | struct d3d8_pixel_shader * | shader, |
struct d3d8_device * | device, | ||
const DWORD * | byte_code, | ||
DWORD | shader_handle | ||
) |
Definition at line 162 of file shader.c.
Referenced by d3d8_device_CreatePixelShader().
void d3d8_resource_cleanup | ( | struct d3d8_resource * | resource | ) |
Definition at line 130 of file d3d8_main.c.
Referenced by d3d8_indexbuffer_wined3d_object_destroyed(), d3d8_texture_wined3d_object_destroyed(), d3d8_vertexbuffer_wined3d_object_destroyed(), surface_wined3d_object_destroyed(), and volume_wined3d_object_destroyed().
HRESULT d3d8_resource_free_private_data | ( | struct d3d8_resource * | resource, |
const GUID * | guid | ||
) |
Definition at line 135 of file d3d8_main.c.
Referenced by d3d8_indexbuffer_FreePrivateData(), d3d8_surface_FreePrivateData(), d3d8_texture_2d_FreePrivateData(), d3d8_texture_3d_FreePrivateData(), d3d8_texture_cube_FreePrivateData(), d3d8_vertexbuffer_FreePrivateData(), and d3d8_volume_FreePrivateData().
HRESULT d3d8_resource_get_private_data | ( | struct d3d8_resource * | resource, |
const GUID * | guid, | ||
void * | data, | ||
DWORD * | data_size | ||
) |
Definition at line 153 of file d3d8_main.c.
Referenced by d3d8_indexbuffer_GetPrivateData(), d3d8_surface_GetPrivateData(), d3d8_texture_2d_GetPrivateData(), d3d8_texture_3d_GetPrivateData(), d3d8_texture_cube_GetPrivateData(), d3d8_vertexbuffer_GetPrivateData(), and d3d8_volume_GetPrivateData().
void d3d8_resource_init | ( | struct d3d8_resource * | resource | ) |
Definition at line 191 of file d3d8_main.c.
Referenced by cubetexture_init(), indexbuffer_init(), surface_init(), texture_init(), vertexbuffer_init(), volume_init(), and volumetexture_init().
HRESULT d3d8_resource_set_private_data | ( | struct d3d8_resource * | resource, |
const GUID * | guid, | ||
const void * | data, | ||
DWORD | data_size, | ||
DWORD | flags | ||
) |
Definition at line 197 of file d3d8_main.c.
Referenced by d3d8_indexbuffer_SetPrivateData(), d3d8_surface_SetPrivateData(), d3d8_texture_2d_SetPrivateData(), d3d8_texture_3d_SetPrivateData(), d3d8_texture_cube_SetPrivateData(), d3d8_vertexbuffer_SetPrivateData(), and d3d8_volume_SetPrivateData().
struct wined3d_rendertarget_view * d3d8_surface_acquire_rendertarget_view | ( | struct d3d8_surface * | surface | ) |
Definition at line 369 of file surface.c.
Referenced by d3d8_device_SetRenderTarget().
struct d3d8_device * d3d8_surface_get_device | ( | const struct d3d8_surface * | surface | ) |
Definition at line 362 of file surface.c.
Referenced by d3d8_device_SetRenderTarget().
void d3d8_surface_release_rendertarget_view | ( | struct d3d8_surface * | surface, |
struct wined3d_rendertarget_view * | rtv | ||
) |
Definition at line 395 of file surface.c.
Referenced by d3d8_device_SetRenderTarget().
HRESULT d3d8_swapchain_create | ( | struct d3d8_device * | device, |
struct wined3d_swapchain_desc * | desc, | ||
struct d3d8_swapchain ** | swapchain | ||
) |
Definition at line 194 of file swapchain.c.
Referenced by d3d8_device_CreateAdditionalSwapChain(), and device_parent_create_swapchain().
void d3d8_vertex_declaration_destroy | ( | struct d3d8_vertex_declaration * | declaration | ) |
Definition at line 321 of file vertexdeclaration.c.
Referenced by d3d8_device_get_fvf_declaration(), d3d8_device_Release(), d3d8_vertex_shader_init(), and d3d8_vertexshader_wined3d_object_destroyed().
HRESULT d3d8_vertex_declaration_init | ( | struct d3d8_vertex_declaration * | declaration, |
struct d3d8_device * | device, | ||
const DWORD * | elements, | ||
DWORD | shader_handle | ||
) |
Definition at line 335 of file vertexdeclaration.c.
Referenced by d3d8_vertexshader_create_vertexdeclaration().
HRESULT d3d8_vertex_declaration_init_fvf | ( | struct d3d8_vertex_declaration * | declaration, |
struct d3d8_device * | device, | ||
DWORD | fvf | ||
) |
Definition at line 369 of file vertexdeclaration.c.
Referenced by d3d8_device_get_fvf_declaration().
void d3d8_vertex_shader_destroy | ( | struct d3d8_vertex_shader * | shader | ) |
Definition at line 32 of file shader.c.
Referenced by d3d8_device_DeleteVertexShader().
HRESULT d3d8_vertex_shader_init | ( | struct d3d8_vertex_shader * | shader, |
struct d3d8_device * | device, | ||
const DWORD * | declaration, | ||
const DWORD * | byte_code, | ||
DWORD | shader_handle, | ||
DWORD | usage | ||
) |
Definition at line 79 of file shader.c.
Referenced by d3d8_device_CreateVertexShader().
void d3dcaps_from_wined3dcaps | ( | D3DCAPS8 * | caps, |
const WINED3DCAPS * | wined3d_caps | ||
) |
Definition at line 290 of file device.c.
Referenced by d3d8_device_GetDeviceCaps(), d3d8_GetDeviceCaps(), d3d9_device_GetDeviceCaps(), and d3d9_GetDeviceCaps().
D3DFORMAT d3dformat_from_wined3dformat | ( | enum wined3d_format_id | format | ) |
Definition at line 44 of file device.c.
Referenced by d3d8_EnumAdapterModes(), d3d8_GetAdapterDisplayMode(), d3d8_indexbuffer_GetDesc(), d3d8_surface_GetDesc(), d3d8_texture_2d_GetLevelDesc(), d3d8_texture_3d_GetLevelDesc(), d3d8_texture_cube_GetLevelDesc(), d3d8_volume_GetDesc(), d3d9_EnumAdapterModes(), d3d9_EnumAdapterModesEx(), d3d9_GetAdapterDisplayMode(), d3d9_GetAdapterDisplayModeEx(), d3d9_indexbuffer_GetDesc(), d3d9_surface_GetDesc(), d3d9_swapchain_GetDisplayMode(), d3d9_swapchain_GetDisplayModeEx(), d3d9_texture_2d_GetLevelDesc(), d3d9_texture_3d_GetLevelDesc(), d3d9_texture_cube_GetLevelDesc(), and d3d9_volume_GetDesc().
Definition at line 285 of file d3d8_private.h.
Referenced by d3d8_indexbuffer_GetDesc(), d3d8_surface_GetDesc(), d3d8_texture_2d_GetLevelDesc(), d3d8_texture_3d_GetLevelDesc(), d3d8_texture_cube_GetLevelDesc(), d3d8_vertexbuffer_GetDesc(), d3d8_volume_GetDesc(), d3d9_indexbuffer_GetDesc(), d3d9_surface_GetDesc(), d3d9_texture_2d_GetLevelDesc(), d3d9_texture_3d_GetLevelDesc(), d3d9_texture_cube_GetLevelDesc(), d3d9_vertexbuffer_GetDesc(), and d3d9_volume_GetDesc().
Definition at line 280 of file d3d8_private.h.
Referenced by d3d8_indexbuffer_GetDesc(), d3d8_surface_GetDesc(), d3d8_texture_2d_GetLevelDesc(), d3d8_texture_3d_GetLevelDesc(), d3d8_texture_cube_GetLevelDesc(), d3d8_vertexbuffer_GetDesc(), d3d8_volume_GetDesc(), d3d9_indexbuffer_GetDesc(), d3d9_surface_GetDesc(), d3d9_vertexbuffer_GetDesc(), and d3d9_volume_GetDesc().
HRESULT device_init | ( | struct d3d8_device * | device, |
struct d3d8 * | parent, | ||
struct wined3d * | wined3d, | ||
UINT | adapter, | ||
D3DDEVTYPE | device_type, | ||
HWND | focus_window, | ||
DWORD | flags, | ||
D3DPRESENT_PARAMETERS * | parameters | ||
) |
Definition at line 3279 of file device.c.
Referenced by d3d8_CreateDevice(), d3d9_CreateDevice(), d3d9_CreateDeviceEx(), and wined3d_device_create().
|
inlinestatic |
Definition at line 132 of file d3d8_private.h.
Referenced by d3d8_device_AddRef(), d3d8_device_ApplyStateBlock(), d3d8_device_BeginScene(), d3d8_device_BeginStateBlock(), d3d8_device_CaptureStateBlock(), d3d8_device_Clear(), d3d8_device_CreateAdditionalSwapChain(), d3d8_device_CreateCubeTexture(), d3d8_device_CreateDepthStencilSurface(), d3d8_device_CreateImageSurface(), d3d8_device_CreateIndexBuffer(), d3d8_device_CreatePixelShader(), d3d8_device_CreateRenderTarget(), d3d8_device_CreateStateBlock(), d3d8_device_CreateTexture(), d3d8_device_CreateVertexBuffer(), d3d8_device_CreateVertexShader(), d3d8_device_CreateVolumeTexture(), d3d8_device_DeletePixelShader(), d3d8_device_DeleteStateBlock(), d3d8_device_DeleteVertexShader(), d3d8_device_DrawIndexedPrimitive(), d3d8_device_DrawIndexedPrimitiveUP(), d3d8_device_DrawPrimitive(), d3d8_device_DrawPrimitiveUP(), d3d8_device_EndScene(), d3d8_device_EndStateBlock(), d3d8_device_GetAvailableTextureMem(), d3d8_device_GetBackBuffer(), d3d8_device_GetClipPlane(), d3d8_device_GetClipStatus(), d3d8_device_GetCreationParameters(), d3d8_device_GetDepthStencilSurface(), d3d8_device_GetDeviceCaps(), d3d8_device_GetDirect3D(), d3d8_device_GetDisplayMode(), d3d8_device_GetFrontBuffer(), d3d8_device_GetGammaRamp(), d3d8_device_GetIndices(), d3d8_device_GetLight(), d3d8_device_GetLightEnable(), d3d8_device_GetMaterial(), d3d8_device_GetPixelShader(), d3d8_device_GetPixelShaderConstant(), d3d8_device_GetPixelShaderFunction(), d3d8_device_GetRasterStatus(), d3d8_device_GetRenderState(), d3d8_device_GetRenderTarget(), d3d8_device_GetStreamSource(), d3d8_device_GetTexture(), d3d8_device_GetTextureStageState(), d3d8_device_GetTransform(), d3d8_device_GetVertexShader(), d3d8_device_GetVertexShaderConstant(), d3d8_device_GetVertexShaderDeclaration(), d3d8_device_GetVertexShaderFunction(), d3d8_device_GetViewport(), d3d8_device_LightEnable(), d3d8_device_MultiplyTransform(), d3d8_device_Present(), d3d8_device_ProcessVertices(), d3d8_device_Release(), d3d8_device_Reset(), d3d8_device_ResourceManagerDiscardBytes(), d3d8_device_SetClipPlane(), d3d8_device_SetClipStatus(), d3d8_device_SetCursorPosition(), d3d8_device_SetCursorProperties(), d3d8_device_SetGammaRamp(), d3d8_device_SetIndices(), d3d8_device_SetLight(), d3d8_device_SetMaterial(), d3d8_device_SetPixelShader(), d3d8_device_SetPixelShaderConstant(), d3d8_device_SetRenderState(), d3d8_device_SetRenderTarget(), d3d8_device_SetStreamSource(), d3d8_device_SetTexture(), d3d8_device_SetTextureStageState(), d3d8_device_SetTransform(), d3d8_device_SetVertexShader(), d3d8_device_SetVertexShaderConstant(), d3d8_device_SetViewport(), d3d8_device_ShowCursor(), d3d8_device_TestCooperativeLevel(), d3d8_device_UpdateTexture(), d3d8_device_ValidateDevice(), d3d8_surface_get_device(), and d3d8_swapchain_Present().
HRESULT indexbuffer_init | ( | struct d3d8_indexbuffer * | buffer, |
struct d3d8_device * | device, | ||
UINT | size, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 570 of file buffer.c.
Referenced by d3d8_device_CreateIndexBuffer(), and d3d9_device_CreateIndexBuffer().
void load_local_constants | ( | const DWORD * | d3d8_elements, |
struct wined3d_shader * | wined3d_vertex_shader | ||
) |
Definition at line 152 of file vertexdeclaration.c.
Referenced by d3d8_vertex_shader_init().
Definition at line 78 of file vertexdeclaration.c.
Referenced by convert_to_wined3d_declaration(), d3d8_vertex_shader_init(), and load_local_constants().
void surface_init | ( | struct d3d8_surface * | surface, |
struct wined3d_texture * | wined3d_texture, | ||
unsigned int | sub_resource_idx, | ||
const struct wined3d_parent_ops ** | parent_ops | ||
) |
Definition at line 317 of file surface.c.
Referenced by device_parent_surface_created().
HRESULT texture_init | ( | struct d3d8_texture * | texture, |
struct d3d8_device * | device, | ||
UINT | width, | ||
UINT | height, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1094 of file texture.c.
Referenced by d3d8_device_CreateTexture(), d3d9_device_CreateTexture(), and wined3d_texture_create().
struct d3d8_texture * unsafe_impl_from_IDirect3DBaseTexture8 | ( | IDirect3DBaseTexture8 * | iface | ) |
Definition at line 1061 of file texture.c.
Referenced by d3d8_device_SetTexture(), d3d8_device_UpdateTexture(), and surface_init().
struct d3d8_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer8 | ( | IDirect3DIndexBuffer8 * | iface | ) |
Definition at line 606 of file buffer.c.
Referenced by d3d8_device_SetIndices().
struct d3d8_surface * unsafe_impl_from_IDirect3DSurface8 | ( | IDirect3DSurface8 * | iface | ) |
Definition at line 402 of file surface.c.
Referenced by d3d8_device_CopyRects(), d3d8_device_GetFrontBuffer(), d3d8_device_SetCursorProperties(), and d3d8_device_SetRenderTarget().
struct d3d8_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer8 | ( | IDirect3DVertexBuffer8 * | iface | ) |
Definition at line 313 of file buffer.c.
Referenced by d3d8_device_ProcessVertices(), and d3d8_device_SetStreamSource().
HRESULT vertexbuffer_init | ( | struct d3d8_vertexbuffer * | buffer, |
struct d3d8_device * | device, | ||
UINT | size, | ||
DWORD | usage, | ||
DWORD | fvf, | ||
D3DPOOL | pool | ||
) |
Definition at line 273 of file buffer.c.
Referenced by d3d8_device_CreateVertexBuffer(), and d3d9_device_CreateVertexBuffer().
void volume_init | ( | struct d3d8_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.
Referenced by device_parent_volume_created().
HRESULT volumetexture_init | ( | struct d3d8_texture * | texture, |
struct d3d8_device * | device, | ||
UINT | width, | ||
UINT | height, | ||
UINT | depth, | ||
UINT | levels, | ||
DWORD | usage, | ||
D3DFORMAT | format, | ||
D3DPOOL | pool | ||
) |
Definition at line 1190 of file texture.c.
Referenced by d3d8_device_CreateVolumeTexture(), d3d9_device_CreateVolumeTexture(), and wined3d_texture_create().
Definition at line 301 of file d3d8_private.h.
Referenced by cubetexture_init(), d3d8_device_create_surface(), d3d9_device_create_surface(), indexbuffer_init(), texture_init(), vertexbuffer_init(), and volumetexture_init().
enum wined3d_format_id wined3dformat_from_d3dformat | ( | D3DFORMAT | format | ) |
Definition at line 94 of file device.c.
Referenced by cubetexture_init(), d3d8_CheckDepthStencilMatch(), d3d8_CheckDeviceFormat(), d3d8_CheckDeviceMultiSampleType(), d3d8_CheckDeviceType(), d3d9_CheckDepthStencilMatch(), d3d9_CheckDeviceFormat(), d3d9_CheckDeviceFormatConversion(), d3d9_CheckDeviceMultiSampleType(), d3d9_CheckDeviceType(), d3d9_EnumAdapterModes(), d3d9_EnumAdapterModesEx(), d3d9_GetAdapterModeCount(), d3d9_GetAdapterModeCountEx(), indexbuffer_init(), texture_init(), and volumetexture_init().
Definition at line 144 of file device.c.
Referenced by d3d8_indexbuffer_Lock(), d3d8_surface_LockRect(), d3d8_vertexbuffer_Lock(), d3d8_volume_LockBox(), d3d9_indexbuffer_Lock(), d3d9_surface_LockRect(), d3d9_vertexbuffer_Lock(), and d3d9_volume_LockBox().