Lines Matching defs:object
201 * along with their set/changed flags on the given stateblock object
203 static HRESULT stateblock_allocate_shader_constants(IWineD3DStateBlockImpl *object)
205 IWineD3DDeviceImpl *device = object->device;
208 object->pixelShaderConstantF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
210 if (!object->pixelShaderConstantF) goto fail;
212 object->changed.pixelShaderConstantsF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
214 if (!object->changed.pixelShaderConstantsF) goto fail;
216 object->vertexShaderConstantF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
218 if (!object->vertexShaderConstantF) goto fail;
220 object->changed.vertexShaderConstantsF = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
222 if (!object->changed.vertexShaderConstantsF) goto fail;
224 object->contained_vs_consts_f = HeapAlloc(GetProcessHeap(), 0,
226 if (!object->contained_vs_consts_f) goto fail;
228 object->contained_ps_consts_f = HeapAlloc(GetProcessHeap(), 0,
230 if (!object->contained_ps_consts_f) goto fail;
236 HeapFree(GetProcessHeap(), 0, object->pixelShaderConstantF);
237 HeapFree(GetProcessHeap(), 0, object->changed.pixelShaderConstantsF);
238 HeapFree(GetProcessHeap(), 0, object->vertexShaderConstantF);
239 HeapFree(GetProcessHeap(), 0, object->changed.vertexShaderConstantsF);
240 HeapFree(GetProcessHeap(), 0, object->contained_vs_consts_f);
241 HeapFree(GetProcessHeap(), 0, object->contained_ps_consts_f);