Lines Matching defs:stateblock

2664 void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_settings *settings, BOOL ignore_textype) {
2700 IWineD3DDeviceImpl *device = stateblock->device;
2709 if(stateblock->textureState[i][WINED3DTSS_COLOROP] == WINED3DTOP_DISABLE) {
2722 texture = (IWineD3DBaseTextureImpl *) stateblock->textures[i];
2751 cop = stateblock->textureState[i][WINED3DTSS_COLOROP];
2752 aop = stateblock->textureState[i][WINED3DTSS_ALPHAOP];
2754 carg1 = (args[cop] & ARG1) ? stateblock->textureState[i][WINED3DTSS_COLORARG1] : ARG_UNUSED;
2755 carg2 = (args[cop] & ARG2) ? stateblock->textureState[i][WINED3DTSS_COLORARG2] : ARG_UNUSED;
2756 carg0 = (args[cop] & ARG0) ? stateblock->textureState[i][WINED3DTSS_COLORARG0] : ARG_UNUSED;
2774 aarg1 = (args[aop] & ARG1) ? stateblock->textureState[i][WINED3DTSS_ALPHAARG1] : ARG_UNUSED;
2775 aarg2 = (args[aop] & ARG2) ? stateblock->textureState[i][WINED3DTSS_ALPHAARG2] : ARG_UNUSED;
2776 aarg0 = (args[aop] & ARG0) ? stateblock->textureState[i][WINED3DTSS_ALPHAARG0] : ARG_UNUSED;
2779 if (i == 0 && stateblock->textures[0] && stateblock->renderState[WINED3DRS_COLORKEYENABLE])
2781 UINT texture_dimensions = IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[0]);
2786 surf = (IWineD3DSurfaceImpl *) ((IWineD3DTextureImpl *) stateblock->textures[0])->surfaces[0];
2797 if (stateblock->renderState[WINED3DRS_ALPHABLENDENABLE])
2806 if (stateblock->renderState[WINED3DRS_ALPHABLENDENABLE])
2826 ttff = stateblock->textureState[i][WINED3DTSS_TEXTURETRANSFORMFLAGS];
2847 if(stateblock->textureState[i][WINED3DTSS_RESULTARG] == WINED3DTA_TEMP) {
2859 if(stateblock->renderState[WINED3DRS_FOGENABLE] == FALSE) {
2861 } else if(stateblock->renderState[WINED3DRS_FOGTABLEMODE] == WINED3DFOG_NONE) {
2862 if(use_vs(stateblock) || ((IWineD3DVertexDeclarationImpl *) stateblock->vertexDecl)->position_transformed) {
2865 switch(stateblock->renderState[WINED3DRS_FOGVERTEXMODE]) {
2879 switch(stateblock->renderState[WINED3DRS_FOGTABLEMODE]) {
2891 if(stateblock->renderState[WINED3DRS_SRGBWRITEENABLE]) {
2896 if(device->vs_clipping || !use_vs(stateblock) || !stateblock->renderState[WINED3DRS_CLIPPING] ||
2897 !stateblock->renderState[WINED3DRS_CLIPPLANEENABLE]) {
2930 void texture_activate_dimensions(DWORD stage, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
2934 if (stateblock->textures[stage])
2936 switch (IWineD3DBaseTexture_GetTextureDimensions(stateblock->textures[stage])) {
3016 void sampler_texdim(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
3019 DWORD mapped_stage = stateblock->device->texUnitMap[sampler];
3026 if(sampler >= stateblock->lowest_disabled_stage) return;
3029 texture_activate_dimensions(sampler, stateblock, context);