mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:12:55 +00:00
[D3D9][WINED3D] Sync with Wine 3.0. CORE-14225
This commit is contained in:
parent
d255223474
commit
d6ac0a71ad
34 changed files with 10600 additions and 12121 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -381,21 +381,8 @@ enum wined3d_render_state
|
|||
WINED3D_RS_SRCBLENDALPHA = 207,
|
||||
WINED3D_RS_DESTBLENDALPHA = 208,
|
||||
WINED3D_RS_BLENDOPALPHA = 209,
|
||||
WINED3D_RS_DEPTHCLIP = 210,
|
||||
WINED3D_RS_COLORWRITEENABLE4 = 211,
|
||||
WINED3D_RS_COLORWRITEENABLE5 = 212,
|
||||
WINED3D_RS_COLORWRITEENABLE6 = 213,
|
||||
WINED3D_RS_COLORWRITEENABLE7 = 214,
|
||||
};
|
||||
#define WINEHIGHEST_RENDER_STATE WINED3D_RS_COLORWRITEENABLE7
|
||||
|
||||
static inline enum wined3d_render_state WINED3D_RS_COLORWRITE(int index)
|
||||
{
|
||||
if (index == 0) return WINED3D_RS_COLORWRITEENABLE;
|
||||
if (index <= 3) return WINED3D_RS_COLORWRITEENABLE1 + index - 1;
|
||||
if (index <= 7) return WINED3D_RS_COLORWRITEENABLE4 + index - 4;
|
||||
return WINED3D_RS_COLORWRITEENABLE;
|
||||
}
|
||||
#define WINEHIGHEST_RENDER_STATE WINED3D_RS_BLENDOPALPHA
|
||||
|
||||
enum wined3d_blend
|
||||
{
|
||||
|
@ -685,9 +672,8 @@ enum wined3d_resource_type
|
|||
{
|
||||
WINED3D_RTYPE_NONE = 0,
|
||||
WINED3D_RTYPE_BUFFER = 1,
|
||||
WINED3D_RTYPE_TEXTURE_1D = 2,
|
||||
WINED3D_RTYPE_TEXTURE_2D = 3,
|
||||
WINED3D_RTYPE_TEXTURE_3D = 4,
|
||||
WINED3D_RTYPE_TEXTURE_2D = 2,
|
||||
WINED3D_RTYPE_TEXTURE_3D = 3,
|
||||
};
|
||||
|
||||
enum wined3d_pool
|
||||
|
@ -942,7 +928,6 @@ enum wined3d_shader_byte_code_format
|
|||
#define WINED3DPRESENT_INTERVAL_FOUR 0x00000008
|
||||
#define WINED3DPRESENT_INTERVAL_IMMEDIATE 0x80000000
|
||||
|
||||
#define WINED3DMAXUSERCLIPPLANES 32
|
||||
#define WINED3DCLIPPLANE0 (1u << 0)
|
||||
#define WINED3DCLIPPLANE1 (1u << 1)
|
||||
#define WINED3DCLIPPLANE2 (1u << 2)
|
||||
|
@ -1321,9 +1306,7 @@ enum wined3d_shader_byte_code_format
|
|||
#define WINED3D_LEGACY_UNBOUND_RESOURCE_COLOR 0x00000400
|
||||
#define WINED3D_NO_PRIMITIVE_RESTART 0x00000800
|
||||
#define WINED3D_LEGACY_CUBEMAP_FILTERING 0x00001000
|
||||
#define WINED3D_FORWARD_DEPTH_BIAS 0x00002000
|
||||
#define WINED3D_REQUEST_D3D10 0x00004000
|
||||
#define WINED3D_LIMIT_VIEWPORT 0x00008000
|
||||
#define WINED3D_NORMALIZED_DEPTH_BIAS 0x00002000
|
||||
|
||||
#define WINED3D_RESZ_CODE 0x7fa05000
|
||||
|
||||
|
@ -1359,6 +1342,7 @@ enum wined3d_shader_byte_code_format
|
|||
#define WINED3D_BLT_SRC_CKEY_OVERRIDE 0x00010000
|
||||
#define WINED3D_BLT_WAIT 0x01000000
|
||||
#define WINED3D_BLT_DO_NOT_WAIT 0x08000000
|
||||
#define WINED3D_BLT_RAW 0x20000000
|
||||
#define WINED3D_BLT_SYNCHRONOUS 0x40000000
|
||||
#define WINED3D_BLT_ALPHA_TEST 0x80000000
|
||||
#define WINED3D_BLT_MASK 0x0901e800
|
||||
|
@ -1554,6 +1538,7 @@ enum wined3d_shader_byte_code_format
|
|||
#define WINED3D_TEXTURE_CREATE_DISCARD 0x00000002
|
||||
#define WINED3D_TEXTURE_CREATE_GET_DC_LENIENT 0x00000004
|
||||
#define WINED3D_TEXTURE_CREATE_GET_DC 0x00000008
|
||||
#define WINED3D_TEXTURE_CREATE_GENERATE_MIPMAPS 0x00000010
|
||||
|
||||
#define WINED3D_APPEND_ALIGNED_ELEMENT 0xffffffff
|
||||
|
||||
|
@ -1813,13 +1798,6 @@ struct wined3d_map_desc
|
|||
void *data;
|
||||
};
|
||||
|
||||
struct wined3d_map_info
|
||||
{
|
||||
UINT row_pitch;
|
||||
UINT slice_pitch;
|
||||
UINT size;
|
||||
};
|
||||
|
||||
struct wined3d_sub_resource_data
|
||||
{
|
||||
const void *data;
|
||||
|
@ -2583,14 +2561,10 @@ void * __cdecl wined3d_resource_get_parent(const struct wined3d_resource *resour
|
|||
DWORD __cdecl wined3d_resource_get_priority(const struct wined3d_resource *resource);
|
||||
HRESULT __cdecl wined3d_resource_map(struct wined3d_resource *resource, unsigned int sub_resource_idx,
|
||||
struct wined3d_map_desc *map_desc, const struct wined3d_box *box, DWORD flags);
|
||||
HRESULT __cdecl wined3d_resource_map_info(struct wined3d_resource *resource, unsigned int sub_resource_idx,
|
||||
struct wined3d_map_info *info, DWORD flags);
|
||||
void __cdecl wined3d_resource_preload(struct wined3d_resource *resource);
|
||||
void __cdecl wined3d_resource_set_parent(struct wined3d_resource *resource, void *parent);
|
||||
DWORD __cdecl wined3d_resource_set_priority(struct wined3d_resource *resource, DWORD priority);
|
||||
HRESULT __cdecl wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx);
|
||||
UINT __cdecl wined3d_resource_update_info(struct wined3d_resource *resource, unsigned int sub_resource_idx,
|
||||
const struct wined3d_box *box, unsigned int row_pitch, unsigned int depth_pitch);
|
||||
|
||||
HRESULT __cdecl wined3d_rendertarget_view_create(const struct wined3d_view_desc *desc,
|
||||
struct wined3d_resource *resource, void *parent, const struct wined3d_parent_ops *parent_ops,
|
||||
|
@ -2636,6 +2610,7 @@ HRESULT __cdecl wined3d_shader_resource_view_create(const struct wined3d_view_de
|
|||
struct wined3d_resource *resource, void *parent, const struct wined3d_parent_ops *parent_ops,
|
||||
struct wined3d_shader_resource_view **view);
|
||||
ULONG __cdecl wined3d_shader_resource_view_decref(struct wined3d_shader_resource_view *view);
|
||||
void __cdecl wined3d_shader_resource_view_generate_mipmaps(struct wined3d_shader_resource_view *view);
|
||||
void * __cdecl wined3d_shader_resource_view_get_parent(const struct wined3d_shader_resource_view *view);
|
||||
ULONG __cdecl wined3d_shader_resource_view_incref(struct wined3d_shader_resource_view *view);
|
||||
|
||||
|
@ -2688,7 +2663,6 @@ HRESULT __cdecl wined3d_texture_create(struct wined3d_device *device, const stru
|
|||
void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_texture **texture);
|
||||
struct wined3d_texture * __cdecl wined3d_texture_from_resource(struct wined3d_resource *resource);
|
||||
ULONG __cdecl wined3d_texture_decref(struct wined3d_texture *texture);
|
||||
void __cdecl wined3d_texture_generate_mipmaps(struct wined3d_texture *texture);
|
||||
enum wined3d_texture_filter_type __cdecl wined3d_texture_get_autogen_filter_type(const struct wined3d_texture *texture);
|
||||
HRESULT __cdecl wined3d_texture_get_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC *dc);
|
||||
DWORD __cdecl wined3d_texture_get_level_count(const struct wined3d_texture *texture);
|
||||
|
@ -2780,18 +2754,4 @@ static inline void wined3d_box_set(struct wined3d_box *box, unsigned int left, u
|
|||
box->back = back;
|
||||
}
|
||||
|
||||
BOOL wined3d_dxt1_decode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxt1_encode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxt3_decode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxt3_encode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxt5_decode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxt5_encode(const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out,
|
||||
enum wined3d_format_id format, unsigned int w, unsigned int h);
|
||||
BOOL wined3d_dxtn_supported(void);
|
||||
|
||||
#endif /* __WINE_WINED3D_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue