Lines Matching refs:This

9  * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
205 struct wined3d_context *context_acquire(IWineD3DDeviceImpl *This, IWineD3DSurface *target, enum ContextUsage usage)
278 IWineD3DStateBlockImpl *This = pContext->pDeviceContext->stateBlock;
284 if (This)
286 if (This->vertexShaderConstantF)
287 HeapFree(GetProcessHeap(), 0, This->vertexShaderConstantF);
288 if (This->changed.vertexShaderConstantsF)
289 HeapFree(GetProcessHeap(), 0, This->changed.vertexShaderConstantsF);
290 if (This->pixelShaderConstantF)
291 HeapFree(GetProcessHeap(), 0, This->pixelShaderConstantF);
292 if (This->changed.pixelShaderConstantsF)
293 HeapFree(GetProcessHeap(), 0, This->changed.pixelShaderConstantsF);
294 if (This->contained_vs_consts_f)
295 HeapFree(GetProcessHeap(), 0, This->contained_vs_consts_f);
296 if (This->contained_ps_consts_f)
297 HeapFree(GetProcessHeap(), 0, This->contained_ps_consts_f);
298 if (This->vertexDecl)
299 HeapFree(GetProcessHeap(), 0, This->vertexDecl);
300 HeapFree(GetProcessHeap(), 0, This);
311 IWineD3DDeviceImpl *This;
316 This = g_pCurrentContext->pDeviceContext;
325 hr = vertexshader_init(object, This, pShaderData, NULL, NULL, NULL);
334 object = vertexshader_check_cached(This, object);
345 IWineD3DDeviceImpl *This;
350 This = g_pCurrentContext->pDeviceContext;
359 hr = pixelshader_init(object, This, pShaderData, NULL, NULL, NULL);
368 object = pixelshader_check_cached(This, object);
400 IWineD3DDeviceImpl *This;
405 This = g_pCurrentContext->pDeviceContext;
407 oldShader = This->updateStateBlock->vertexShader;
415 This->updateStateBlock->vertexShader = pShader;
416 This->updateStateBlock->changed.vertexShader = TRUE;
418 Log(("(%p) : setting pShader(%p)\n", This, pShader));
430 IWineD3DDeviceImpl *This;
435 This = g_pCurrentContext->pDeviceContext;
437 oldShader = This->updateStateBlock->pixelShader;
445 This->updateStateBlock->pixelShader = pShader;
446 This->updateStateBlock->changed.pixelShader = TRUE;
448 Log(("(%p) : setting pShader(%p)\n", This, pShader));
459 IWineD3DDeviceImpl *This;
463 This = g_pCurrentContext->pDeviceContext;
474 memcpy(&This->updateStateBlock->vertexShaderConstantB[start], srcData, cnt * sizeof(BOOL));
479 This->updateStateBlock->changed.vertexShaderConstantsB |= (1 << i);
489 IWineD3DDeviceImpl *This;
493 This = g_pCurrentContext->pDeviceContext;
504 memcpy(&This->updateStateBlock->vertexShaderConstantI[start * 4], srcData, cnt * sizeof(int32_t) * 4);
507 This->updateStateBlock->changed.vertexShaderConstantsI |= (1 << i);
517 IWineD3DDeviceImpl *This;
520 This = g_pCurrentContext->pDeviceContext;
525 if (srcData == NULL || start + count > This->d3d_vshader_constantF || start > This->d3d_vshader_constantF)
530 memcpy(&This->updateStateBlock->vertexShaderConstantF[start * 4], srcData, count * sizeof(float) * 4);
532 This->shader_backend->shader_update_float_vertex_constants((IWineD3DDevice *)This, start, count);
534 memset(This->updateStateBlock->changed.vertexShaderConstantsF + start, 1,
535 sizeof(*This->updateStateBlock->changed.vertexShaderConstantsF) * count);
544 IWineD3DDeviceImpl *This;
548 This = g_pCurrentContext->pDeviceContext;
559 memcpy(&This->updateStateBlock->pixelShaderConstantB[start], srcData, cnt * sizeof(BOOL));
564 This->updateStateBlock->changed.pixelShaderConstantsB |= (1 << i);
574 IWineD3DDeviceImpl *This;
578 This = g_pCurrentContext->pDeviceContext;
589 memcpy(&This->updateStateBlock->pixelShaderConstantI[start * 4], srcData, cnt * sizeof(int32_t) * 4);
592 This->updateStateBlock->changed.pixelShaderConstantsI |= (1 << i);
602 IWineD3DDeviceImpl *This;
605 This = g_pCurrentContext->pDeviceContext;
610 if (srcData == NULL || start + count > This->d3d_pshader_constantF || start > This->d3d_pshader_constantF)
616 memcpy(&This->updateStateBlock->pixelShaderConstantF[start * 4], srcData, count * sizeof(float) * 4);
618 This->shader_backend->shader_update_float_pixel_constants((IWineD3DDevice *)This, start, count);
620 memset(This->updateStateBlock->changed.pixelShaderConstantsF + start, 1,
621 sizeof(*This->updateStateBlock->changed.pixelShaderConstantsF) * count);
643 pThis->posFixup[0] = 1.0f; /* This is needed to get the x coord unmodified through a MAD. */
695 scales [-1;1] to [0;1]. This would mean that we end up in [0.5;1] and loose a lot
713 * This is equivalent to: