Lines Matching refs:resource
37 #define GLINFO_LOCATION This->resource.device->adapter->gl_info
42 const struct wined3d_gl_info *gl_info = &This->resource.device->adapter->gl_info;
63 active_sampler = This->resource.device->rev_tex_unit_map[active_texture - GL_TEXTURE0_ARB];
70 IWineD3DDeviceImpl_MarkStateDirty(This->resource.device, STATE_SAMPLER(active_sampler));
131 TRACE("(%p) : AddRef increasing from %d\n", This, This->resource.ref);
132 return InterlockedIncrement(&This->resource.ref);
138 TRACE("(%p) : Releasing from %d\n", This, This->resource.ref);
139 ref = InterlockedDecrement(&This->resource.ref);
142 This->resource.parent_ops->wined3d_object_destroyed(This->resource.parent);
180 /* The whole content is shadowed on This->resource.allocatedMemory, and the
217 pDesc->Format = This->resource.format_desc->format;
218 pDesc->Type = This->resource.resourceType;
219 pDesc->Usage = This->resource.usage;
220 pDesc->Pool = This->resource.pool;
221 pDesc->Size = This->resource.size; /* dx8 only */
233 if(!This->resource.allocatedMemory) {
234 This->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, This->resource.size);
238 TRACE("(%p) : box=%p, output pbox=%p, allMem=%p\n", This, pBox, pLockedVolume, This->resource.allocatedMemory);
240 pLockedVolume->RowPitch = This->resource.format_desc->byte_count * This->currentDesc.Width; /* Bytes / row */
241 pLockedVolume->SlicePitch = This->resource.format_desc->byte_count
245 pLockedVolume->pBits = This->resource.allocatedMemory;
267 pLockedVolume->pBits = This->resource.allocatedMemory
270 + (pBox->Left * This->resource.format_desc->byte_count);
340 const struct wined3d_format_desc *glDesc = This->resource.format_desc;
356 This->resource.allocatedMemory);
368 This->resource.allocatedMemory));
372 /* When adding code releasing This->resource.allocatedMemory to save data keep in mind that
374 * Thus do not release This->resource.allocatedMemory if GL_APPLE_client_storage is supported.
438 WARN("Failed to initialize resource, returning %#x.\n", hr);