Lines Matching defs:device
49 This->state.vs_const_f = MALLOC(VS_CONST_F_SIZE(This->base.device));
50 This->state.ps_const_f = MALLOC(This->base.device->ps_const_size);
51 This->state.vs_const_i = MALLOC(VS_CONST_I_SIZE(This->base.device));
52 This->state.vs_const_b = MALLOC(VS_CONST_B_SIZE(This->base.device));
65 struct nine_range_pool *pool = &This->base.device->range_pool;
111 NineStateBlock9_BindBuffer( struct NineDevice9 *device,
117 NineBindBufferToDevice(device, slot, buf);
123 NineStateBlock9_BindTexture( struct NineDevice9 *device,
129 NineBindTextureToDevice(device, slot, tex);
139 nine_state_copy_common(struct NineDevice9 *device,
150 /* device changed.* are unused.
175 * Note: Currently when we apply stateblocks, it's always on the device state.
176 * Should it affect recording stateblocks ? Since it's on device state, there
269 NineStateBlock9_BindBuffer(device,
280 NineStateBlock9_BindBuffer(device,
304 NineStateBlock9_BindTexture(device, apply, &dst->texture[s], src->texture[s]);
333 /* Can happen in Capture() if device state has created new lights after
353 * Can happen in Apply() if device state has created new lights after
390 nine_state_copy_common_all(struct NineDevice9 *device,
418 &src->vs_const_f[0], VS_CONST_F_SIZE(device));
420 memcpy(dst->vs_const_i, src->vs_const_i, VS_CONST_I_SIZE(device));
421 memcpy(dst->vs_const_b, src->vs_const_b, VS_CONST_B_SIZE(device));
452 NineStateBlock9_BindBuffer(device,
460 NineStateBlock9_BindBuffer(device,
479 NineStateBlock9_BindTexture(device, apply, &dst->texture[i], src->texture[i]);
522 /* Apply is always used on device state.
532 /* Capture those bits of current device state that have been changed between
538 struct NineDevice9 *device = This->base.device;
540 struct nine_state *src = &device->state;
541 const int MaxStreams = device->caps.MaxStreams;
546 nine_state_copy_common_all(device, dst, src, dst, FALSE, NULL, MaxStreams);
548 nine_state_copy_common(device, dst, src, dst, FALSE, NULL);
556 /* Set state managed by this StateBlock as current device state. */
560 struct NineDevice9 *device = This->base.device;
561 struct nine_state *dst = &device->state;
563 struct nine_range_pool *pool = &device->range_pool;
564 const int MaxStreams = device->caps.MaxStreams;
569 nine_state_copy_common_all(device, dst, src, src, TRUE, pool, MaxStreams);
571 nine_state_copy_common(device, dst, src, src, TRUE, pool);
573 nine_context_apply_stateblock(device, src);