Lines Matching refs:object
40 * along with their set/changed flags on the given stateblock object
42 static HRESULT stateblock_allocate_shader_constants(IWineD3DStateBlockImpl *object)
44 IWineD3DDeviceImpl *device = object->device;
47 object->pixelShaderConstantF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
49 if (!object->pixelShaderConstantF) goto fail;
51 object->changed.pixelShaderConstantsF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
53 if (!object->changed.pixelShaderConstantsF) goto fail;
55 object->vertexShaderConstantF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
57 if (!object->vertexShaderConstantF) goto fail;
59 object->changed.vertexShaderConstantsF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
61 if (!object->changed.vertexShaderConstantsF) goto fail;
63 object->contained_vs_consts_f = HeapAlloc(GetProcessHeap(), 0,
65 if (!object->contained_vs_consts_f) goto fail;
67 object->contained_ps_consts_f = HeapAlloc(GetProcessHeap(), 0,
69 if (!object->contained_ps_consts_f) goto fail;
75 HeapFree(GetProcessHeap(), 0, object->pixelShaderConstantF);
76 HeapFree(GetProcessHeap(), 0, object->changed.pixelShaderConstantsF);
77 HeapFree(GetProcessHeap(), 0, object->vertexShaderConstantF);
78 HeapFree(GetProcessHeap(), 0, object->changed.vertexShaderConstantsF);
79 HeapFree(GetProcessHeap(), 0, object->contained_vs_consts_f);
80 HeapFree(GetProcessHeap(), 0, object->contained_ps_consts_f);