Lines Matching refs:declaration
93 /* Compute declaration size */
97 /* convert the declaration */
322 IDirect3DVertexDeclaration9Impl *declaration = parent;
323 HeapFree(GetProcessHeap(), 0, declaration->elements);
324 HeapFree(GetProcessHeap(), 0, declaration);
377 HRESULT vertexdeclaration_init(IDirect3DVertexDeclaration9Impl *declaration,
388 WARN("Failed to create wined3d vertex declaration elements, hr %#x.\n", hr);
392 declaration->lpVtbl = &Direct3DVertexDeclaration9_Vtbl;
393 declaration->ref = 1;
396 declaration->elements = HeapAlloc(GetProcessHeap(), 0, element_count * sizeof(*declaration->elements));
397 if (!declaration->elements)
400 ERR("Failed to allocate vertex declaration elements memory.\n");
403 memcpy(declaration->elements, elements, element_count * sizeof(*elements));
404 declaration->element_count = element_count;
407 hr = IWineD3DDevice_CreateVertexDeclaration(device->WineD3DDevice, &declaration->wineD3DVertexDeclaration,
408 (IUnknown *)declaration, &d3d9_vertexdeclaration_wined3d_parent_ops,
414 HeapFree(GetProcessHeap(), 0, declaration->elements);
415 WARN("Failed to create wined3d vertex declaration, hr %#x.\n", hr);
419 declaration->parentDevice = (IDirect3DDevice9Ex *)device;
420 IDirect3DDevice9Ex_AddRef(declaration->parentDevice);
430 TRACE("iface %p, vertex declaration %p.\n", iface, pDecl);
444 TRACE("iface %p, declaration %p.\n", iface, ppDecl);