Lines Matching refs:state
30 * Functions that manipulate the output merger state.
402 * the resource video memory) for a blend state.
423 * the resource video memory) for a blend state.
541 * The CreateBlendState function creates a blend state.
560 struct pipe_blend_state state;
561 memset(&state, 0, sizeof state);
564 state.rt[i].blend_enable = pBlendDesc->BlendEnable[i];
565 state.rt[i].colormask = pBlendDesc->RenderTargetWriteMask[i];
569 state.independent_blend_enable = 1;
573 state.rt[0].rgb_func = translateBlendOp(pBlendDesc->BlendOp);
576 state.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
577 state.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE;
579 state.rt[0].rgb_src_factor = translateBlend(pDevice, pBlendDesc->SrcBlend);
580 state.rt[0].rgb_dst_factor = translateBlend(pDevice, pBlendDesc->DestBlend);
583 state.rt[0].alpha_func = translateBlendOp(pBlendDesc->BlendOpAlpha);
586 state.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
587 state.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ONE;
589 state.rt[0].alpha_src_factor = translateBlend(pDevice, pBlendDesc->SrcBlendAlpha);
590 state.rt[0].alpha_dst_factor = translateBlend(pDevice, pBlendDesc->DestBlendAlpha);
597 state.rt[i].rgb_func = state.rt[0].rgb_func;
598 state.rt[i].rgb_src_factor = state.rt[0].rgb_src_factor;
599 state.rt[i].rgb_dst_factor = state.rt[0].rgb_dst_factor;
600 state.rt[i].alpha_func = state.rt[0].alpha_func;
601 state.rt[i].alpha_src_factor = state.rt[0].alpha_src_factor;
602 state.rt[i].alpha_dst_factor = state.rt[0].alpha_dst_factor;
605 state.alpha_to_coverage = pBlendDesc->AlphaToCoverageEnable;
607 pBlendState->handle = pipe->create_blend_state(pipe, &state);
616 * The CreateBlendState function creates a blend state.
635 struct pipe_blend_state state;
636 memset(&state, 0, sizeof state);
638 state.alpha_to_coverage = pBlendDesc->AlphaToCoverageEnable;
639 state.independent_blend_enable = pBlendDesc->IndependentBlendEnable;
642 state.rt[i].blend_enable = pBlendDesc->RenderTarget[i].BlendEnable;
643 state.rt[i].colormask = pBlendDesc->RenderTarget[i].RenderTargetWriteMask;
645 state.rt[i].rgb_func = translateBlendOp(pBlendDesc->RenderTarget[i].BlendOp);
648 state.rt[i].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
649 state.rt[i].rgb_dst_factor = PIPE_BLENDFACTOR_ONE;
651 state.rt[i].rgb_src_factor = translateBlend(pDevice, pBlendDesc->RenderTarget[i].SrcBlend);
652 state.rt[i].rgb_dst_factor = translateBlend(pDevice, pBlendDesc->RenderTarget[i].DestBlend);
655 state.rt[i].alpha_func = translateBlendOp(pBlendDesc->RenderTarget[i].BlendOpAlpha);
658 state.rt[i].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
659 state.rt[i].alpha_dst_factor = PIPE_BLENDFACTOR_ONE;
661 state.rt[i].alpha_src_factor = translateBlend(pDevice, pBlendDesc->RenderTarget[i].SrcBlendAlpha);
662 state.rt[i].alpha_dst_factor = translateBlend(pDevice, pBlendDesc->RenderTarget[i].DestBlendAlpha);
666 pBlendState->handle = pipe->create_blend_state(pipe, &state);
676 * state object. The blend state object can be destoyed only if
700 * The SetBlendState function sets a blend state.
714 void *state = CastPipeBlendState(hState);
716 pipe->bind_blend_state(pipe, state);
791 * resource video memory) for a depth stencil state.
882 * The CreateDepthStencilState function creates a depth stencil state.
899 struct pipe_depth_stencil_alpha_state state;
900 memset(&state, 0, sizeof state);
903 state.depth_enabled = (pDepthStencilDesc->DepthEnable ? 1 : 0);
904 state.depth_writemask = (pDepthStencilDesc->DepthWriteMask ? 1 : 0);
905 state.depth_func = translateComparison(pDepthStencilDesc->DepthFunc);
909 struct pipe_stencil_state *face0 = &state.stencil[0];
910 struct pipe_stencil_state *face1 = &state.stencil[1];
945 pipe->create_depth_stencil_alpha_state(pipe, &state);
954 * The CreateDepthStencilState function creates a depth stencil state.
977 * The SetDepthStencilState function sets a depth-stencil state.
990 void *state = CastPipeDepthStencilState(hState);
996 pipe->bind_depth_stencil_alpha_state(pipe, state);