51 char *instr = (
char *)
buffer->desc.lpData + is;
52 unsigned int i, primitive_size;
57 TRACE(
"ExecuteData :\n");
69 instr +=
sizeof(*current);
87 instr +=
sizeof(*p) *
count;
98 unsigned int index_pos =
buffer->index_pos, index_count;
110 index_count =
count * primitive_size;
111 if (
buffer->index_size < index_count)
122 desc.structure_byte_stride = 0;
131 buffer->index_buffer = new_buffer;
134 else if (
buffer->index_size - index_count < index_pos)
139 box.left = index_pos *
sizeof(*indices);
140 box.right = (index_pos + index_count) *
sizeof(*
indices);
149 TRACE(
" v1: %d v2: %d v3: %d\n",ci->
v1, ci->
v2, ci->
v3);
155 TRACE(
"EDGEENABLE1 ");
157 TRACE(
"EDGEENABLE2 ");
159 TRACE(
"EDGEENABLE3 ");
172 switch (primitive_size)
194 buffer->index_pos = index_pos + index_count;
216 ERR(
"Invalid matrix handle (a %#lx -> %p, b %#lx -> %p, c %#lx -> %p).\n",
221 TRACE(
"dst %p, src1 %p, src2 %p.\n",
a,
b,
c);
239 ERR(
"Invalid matrix handle %#lx.\n", ci->
dwArg[0]);
265 WARN(
"Failed to set light state.\n");
279 WARN(
"Failed to set render state.\n");
293 TRACE(
" start %u, dest %u, count %lu, flags %#lx.\n",
297 FIXME(
"D3DPROCESSVERTICES_UPDATEEXTENTS not implemented.\n");
299 FIXME(
"D3DPROCESSVERTICES_NOCOLOR not implemented.\n");
321 box.bottom =
box.back = 1;
329 FIXME(
"Unhandled vertex processing op %#lx.\n",
op);
415 ERR(
"Unhandled OpCode %#x.\n",
current->bOpcode);
489 if (
buffer->dst_vertex_buffer)
536 TRACE(
"iface %p, desc %p.\n", iface,
desc);
543 TRACE(
" Returning description :\n");
560 TRACE(
"iface %p.\n", iface);
585 DWORD buf_size =
buffer->desc.dwBufferSize, copy_size;
587 TRACE(
"iface %p, data %p.\n", iface,
data);
591 WARN(
"data->dwSize is %lu, returning DDERR_INVALIDPARAMS.\n",
data->dwSize);
598 if (
buffer->vertex_size <
data->dwVertexCount)
609 desc.structure_byte_stride = 0;
626 if (
buffer->dst_vertex_buffer)
631 buffer->src_vertex_buffer = src_buffer;
632 buffer->dst_vertex_buffer = dst_buffer;
634 buffer->src_vertex_pos = 0;
636 else if (
buffer->vertex_size -
data->dwVertexCount <
buffer->src_vertex_pos)
638 buffer->src_vertex_pos = 0;
641 if (
data->dwVertexCount && (!buf_size ||
data->dwVertexOffset < buf_size))
651 copy_size =
min(copy_size, buf_size -
data->dwVertexOffset);
682 TRACE(
"iface %p, data %p.\n", iface,
data);
689 TRACE(
"Returning data :\n");
712 TRACE(
"iface %p, offset %p, callback %p, context %p, reserved %#lx.\n",
715 WARN(
"Not implemented.\n");
737 WARN(
"Not implemented.\n");
760 execute_buffer->
ref = 1;
780 ERR(
"Failed to allocate execute buffer data.\n");
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define IDirect3DDevice3_SetRenderState(p, a, b)
#define IDirect3DDevice3_SetLightState(p, a, b)
#define IDirect3DExecuteBuffer_AddRef(p)
#define IDirect3DTexture2_Load(p, a)
#define IDirect3DDevice3_SetTransform(p, a, b)
struct _D3DVERTEX D3DVERTEX
#define D3DTRIFLAG_EDGEENABLE1
#define D3DPROCESSVERTICES_COPY
#define D3DPROCESSVERTICES_OPMASK
#define D3DPROCESSVERTICES_NOCOLOR
HRESULT(CALLBACK * LPD3DVALIDATECALLBACK)(void *ctx, DWORD offset)
struct _D3DTLVERTEX D3DTLVERTEX
#define D3DPROCESSVERTICES_UPDATEEXTENTS
#define D3DPROCESSVERTICES_TRANSFORMLIGHT
#define D3DPROCESSVERTICES_TRANSFORM
#define D3DTRIFLAG_EDGEENABLE2
void d3d_device_apply_state(struct d3d_device *device, BOOL clear_state)
void multiply_matrix(struct wined3d_matrix *dst, const struct wined3d_matrix *src1, const struct wined3d_matrix *src2)
void * ddraw_get_object(struct ddraw_handle_table *t, DWORD handle, enum ddraw_handle_type type)
void d3d_device_sync_surfaces(struct d3d_device *device)
struct wined3d_vertex_declaration * ddraw_find_decl(struct ddraw *This, DWORD fvf)
const struct wined3d_parent_ops ddraw_null_wined3d_parent_ops
HRESULT CDECL wined3d_buffer_create(struct wined3d_device *device, const struct wined3d_buffer_desc *desc, const struct wined3d_sub_resource_data *data, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_buffer **buffer)
ULONG CDECL wined3d_buffer_decref(struct wined3d_buffer *buffer)
struct wined3d_resource *CDECL wined3d_buffer_get_resource(struct wined3d_buffer *buffer)
void CDECL wined3d_device_context_draw(struct wined3d_device_context *context, unsigned int start_vertex, unsigned int vertex_count, unsigned int start_instance, unsigned int instance_count)
void CDECL wined3d_device_context_set_primitive_type(struct wined3d_device_context *context, enum wined3d_primitive_type primitive_type, unsigned int patch_vertex_count)
HRESULT CDECL wined3d_device_context_copy_sub_resource_region(struct wined3d_device_context *context, struct wined3d_resource *dst_resource, unsigned int dst_sub_resource_idx, unsigned int dst_x, unsigned int dst_y, unsigned int dst_z, struct wined3d_resource *src_resource, unsigned int src_sub_resource_idx, const struct wined3d_box *src_box, unsigned int flags)
void CDECL wined3d_device_context_draw_indexed(struct wined3d_device_context *context, int base_vertex_index, unsigned int start_index, unsigned int index_count, unsigned int start_instance, unsigned int instance_count)
HRESULT CDECL wined3d_device_process_vertices(struct wined3d_device *device, struct wined3d_stateblock *stateblock, UINT src_start_idx, UINT dst_idx, UINT vertex_count, struct wined3d_buffer *dst_buffer, const struct wined3d_vertex_declaration *declaration, uint32_t flags, uint32_t dst_fvf)
HRESULT CDECL wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx)
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, uint32_t flags)
#define D3DTRANSFORMSTATE_WORLD
#define D3DTRANSFORMSTATE_VIEW
#define D3DTRANSFORMSTATE_PROJECTION
static ULONG WINAPI d3d_execute_buffer_Release(IDirect3DExecuteBuffer *iface)
static HRESULT WINAPI d3d_execute_buffer_QueryInterface(IDirect3DExecuteBuffer *iface, REFIID iid, void **out)
static HRESULT WINAPI d3d_execute_buffer_Lock(IDirect3DExecuteBuffer *iface, D3DEXECUTEBUFFERDESC *desc)
HRESULT d3d_execute_buffer_init(struct d3d_execute_buffer *execute_buffer, struct d3d_device *device, D3DEXECUTEBUFFERDESC *desc)
static HRESULT WINAPI d3d_execute_buffer_SetExecuteData(IDirect3DExecuteBuffer *iface, D3DEXECUTEDATA *data)
static struct d3d_execute_buffer * impl_from_IDirect3DExecuteBuffer(IDirect3DExecuteBuffer *iface)
static void _dump_D3DEXECUTEBUFFERDESC(const D3DEXECUTEBUFFERDESC *lpDesc)
static HRESULT WINAPI d3d_execute_buffer_Unlock(IDirect3DExecuteBuffer *iface)
static void _dump_executedata(const D3DEXECUTEDATA *lpData)
static HRESULT WINAPI d3d_execute_buffer_Initialize(IDirect3DExecuteBuffer *iface, IDirect3DDevice *device, D3DEXECUTEBUFFERDESC *desc)
struct d3d_execute_buffer * unsafe_impl_from_IDirect3DExecuteBuffer(IDirect3DExecuteBuffer *iface)
static HRESULT WINAPI d3d_execute_buffer_Validate(IDirect3DExecuteBuffer *iface, DWORD *offset, LPD3DVALIDATECALLBACK callback, void *context, DWORD reserved)
static HRESULT WINAPI d3d_execute_buffer_GetExecuteData(IDirect3DExecuteBuffer *iface, D3DEXECUTEDATA *data)
static const struct IDirect3DExecuteBufferVtbl d3d_execute_buffer_vtbl
static HRESULT WINAPI d3d_execute_buffer_Optimize(IDirect3DExecuteBuffer *iface, DWORD reserved)
HRESULT d3d_execute_buffer_execute(struct d3d_execute_buffer *buffer, struct d3d_device *device)
static ULONG WINAPI d3d_execute_buffer_AddRef(IDirect3DExecuteBuffer *iface)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLuint GLsizei GLenum const GLvoid * indices
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
struct task_struct * current
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static IPrintDialogCallback callback
D3D11_SHADER_VARIABLE_DESC desc
#define IsEqualGUID(rguid1, rguid2)
#define DDERR_OUTOFMEMORY
#define DDERR_UNSUPPORTED
#define DDERR_INVALIDPARAMS
DWORD dwInstructionOffset
DWORD dwInstructionLength
D3DMATRIXHANDLE hDestMatrix
D3DMATRIXHANDLE hSrcMatrix1
D3DMATRIXHANDLE hSrcMatrix2
D3DLIGHTSTATETYPE dlstLightStateType
D3DTRANSFORMSTATETYPE dtstTransformStateType
D3DRENDERSTATETYPE drstRenderStateType
D3DTEXTUREHANDLE hSrcTexture
D3DTEXTUREHANDLE hDestTexture
IDirect3DExecuteBuffer IDirect3DExecuteBuffer_iface
D3DEXECUTEBUFFERDESC desc
struct d3d_device * d3ddev
#define CONTAINING_RECORD(address, type, field)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
void CDECL wined3d_stateblock_set_vertex_declaration(struct wined3d_stateblock *stateblock, struct wined3d_vertex_declaration *declaration)
void CDECL wined3d_stateblock_set_index_buffer(struct wined3d_stateblock *stateblock, struct wined3d_buffer *buffer, enum wined3d_format_id format_id)
void CDECL wined3d_stateblock_set_render_state(struct wined3d_stateblock *stateblock, enum wined3d_render_state state, unsigned int value)
HRESULT CDECL wined3d_stateblock_set_stream_source(struct wined3d_stateblock *stateblock, UINT stream_idx, struct wined3d_buffer *buffer, UINT offset, UINT stride)
@ WINED3D_PT_TRIANGLELIST
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_GPU
#define WINED3D_RESOURCE_ACCESS_CPU
#define WINED3D_RESOURCE_ACCESS_MAP_R
#define WINED3D_MAP_DISCARD
#define WINED3D_MAP_WRITE
#define WINED3D_MAP_NOOVERWRITE
#define WINED3DUSAGE_DYNAMIC
#define WINED3DUSAGE_STATICDECL
#define WINED3D_BIND_INDEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_MAP_W