Lines Matching refs:stateBlock

178     const struct wined3d_state *state = &device->stateBlock->state;
328 const struct wined3d_state *state = &device->stateBlock->state;
375 const struct wined3d_state *state = &device->stateBlock->state;
759 && device->updateStateBlock != device->stateBlock)
763 stateblock = device->stateBlock;
764 device->stateBlock = NULL;
1224 stateblock_init_default_state(device->stateBlock);
1350 stateblock_unbind_resources(device->stateBlock);
1550 *offset = device->stateBlock->state.stream_output[idx].offset;
1551 return device->stateBlock->state.stream_output[idx].buffer;
1635 stream = &device->stateBlock->state.streams[stream_idx];
1725 if (!memcmp(&device->stateBlock->state.transforms[d3dts].u.m[0][0], matrix, sizeof(*matrix)))
1731 device->stateBlock->state.transforms[d3dts] = *matrix;
1742 *matrix = device->stateBlock->state.transforms[state];
1943 LIST_FOR_EACH(e, &device->stateBlock->state.light_map[hash_idx])
2071 LIST_FOR_EACH(e, &device->stateBlock->state.light_map[hash_idx])
2135 *plane = device->stateBlock->state.clip_planes[plane_idx];
2246 *format = device->stateBlock->state.index_format;
2247 return device->stateBlock->state.index_buffer;
2261 return device->stateBlock->state.base_vertex_index;
2287 *viewport = device->stateBlock->state.viewport;
2309 DWORD old_value = device->stateBlock->state.render_states[state];
2332 resolve_depth_buffer(&device->stateBlock->state);
2340 return device->stateBlock->state.render_states[state];
2354 if (sampler_idx >= sizeof(device->stateBlock->state.sampler_states)
2355 / sizeof(*device->stateBlock->state.sampler_states))
2361 old_value = device->stateBlock->state.sampler_states[sampler_idx][state];
2390 if (sampler_idx >= sizeof(device->stateBlock->state.sampler_states)
2391 / sizeof(*device->stateBlock->state.sampler_states))
2397 return device->stateBlock->state.sampler_states[sampler_idx][state];
2464 return device->stateBlock->state.vertex_declaration;
2500 return device->stateBlock->state.vertex_shader;
2552 return device->stateBlock->state.vs_cb[idx];
2586 return device->stateBlock->state.vs_sampler[idx];
2625 memcpy(constants, &device->stateBlock->state.vs_consts_b[start_register], count * sizeof(BOOL));
2668 memcpy(constants, &device->stateBlock->state.vs_consts_i[start_register * 4], count * sizeof(int) * 4);
2722 memcpy(constants, &device->stateBlock->state.vs_consts_f[start_register * 4], count * sizeof(float) * 4);
2758 const struct wined3d_state *state = &device->stateBlock->state;
2797 || device->stateBlock->state.lowest_disabled_stage <= d3d_info->limits.ffp_textures)
2833 device->stateBlock->state.pixel_shader->reg_maps.sampler_type;
2876 device->stateBlock->state.vertex_shader->reg_maps.sampler_type;
2885 pshader_sampler_type = device->stateBlock->state.pixel_shader->reg_maps.sampler_type;
2919 const struct wined3d_state *state = &device->stateBlock->state;
2971 return device->stateBlock->state.pixel_shader;
3023 return device->stateBlock->state.ps_cb[idx];
3057 return device->stateBlock->state.ps_sampler[idx];
3096 memcpy(constants, &device->stateBlock->state.ps_consts_b[start_register], count * sizeof(BOOL));
3139 memcpy(constants, &device->stateBlock->state.ps_consts_i[start_register * 4], count * sizeof(int) * 4);
3194 memcpy(constants, &device->stateBlock->state.ps_consts_f[start_register * 4], count * sizeof(float) * 4);
3222 return device->stateBlock->state.geometry_shader;
3274 return device->stateBlock->state.gs_cb[idx];
3308 return device->stateBlock->state.gs_sampler[idx];
3338 if (device->stateBlock->state.render_states[WINED3D_RS_CLIPPING])
3584 struct wined3d_state *state = &device->stateBlock->state;
3681 if (stage > device->stateBlock->state.lowest_disabled_stage
3701 for (i = stage + 1; i < device->stateBlock->state.lowest_disabled_stage; ++i)
3706 device->stateBlock->state.lowest_disabled_stage = stage;
3726 device->stateBlock->state.lowest_disabled_stage = i;
3761 if (stage >= sizeof(device->stateBlock->state.textures) / sizeof(*device->stateBlock->state.textures))
3862 if (stage >= sizeof(device->stateBlock->state.textures) / sizeof(*device->stateBlock->state.textures))
3868 return device->stateBlock->state.textures[stage];
3950 device->updateStateBlock = device->stateBlock;
4049 wined3d_get_draw_rect(&device->stateBlock->state, &draw_rect);
4077 *primitive_type = d3d_primitive_type_from_gl(device->stateBlock->state.gl_primitive_type);
4086 if (!device->stateBlock->state.vertex_declaration)
4092 if (device->stateBlock->state.load_base_vertex_index)
4094 device->stateBlock->state.load_base_vertex_index = 0;
4110 if (!device->stateBlock->state.index_buffer)
4120 if (!device->stateBlock->state.vertex_declaration)
4127 device->stateBlock->state.load_base_vertex_index != device->stateBlock->state.base_vertex_index)
4129 device->stateBlock->state.load_base_vertex_index = device->stateBlock->state.base_vertex_index;
4299 const struct wined3d_state *state = &device->stateBlock->state;
4553 struct wined3d_state *state = &device->stateBlock->state;
5012 stateblock_unbind_resources(device->stateBlock);
5276 wined3d_stateblock_decref(device->stateBlock);
5282 hr = wined3d_stateblock_create(device, WINED3D_SBT_INIT, &device->stateBlock);
5286 TRACE("Created stateblock %p.\n", device->stateBlock);
5287 device->updateStateBlock = device->stateBlock;
5290 stateblock_init_default_state(device->stateBlock);
5295 struct wined3d_state *state = &device->stateBlock->state;
5424 if (device->stateBlock && device->stateBlock->state.textures[i] == texture)
5427 texture, device->stateBlock, i);
5428 device->stateBlock->state.textures[i] = NULL;
5431 if (device->updateStateBlock != device->stateBlock
5447 if (device->stateBlock && device->stateBlock->state.streams[i].buffer == buffer)
5450 buffer, device->stateBlock, i);
5451 device->stateBlock->state.streams[i].buffer = NULL;
5454 if (device->updateStateBlock != device->stateBlock
5464 if (device->stateBlock && device->stateBlock->state.index_buffer == buffer)
5467 buffer, device->stateBlock);
5468 device->stateBlock->state.index_buffer = NULL;
5471 if (device->updateStateBlock != device->stateBlock
5564 hr = wined3d_stateblock_create(device, WINED3D_SBT_INIT, &device->stateBlock);
5576 TRACE("Created stateblock %p.\n", device->stateBlock);
5577 device->updateStateBlock = device->stateBlock;