Lines Matching refs:context

69 	PixelProcessor::PixelProcessor(Context *context) : context(context)  in PixelProcessor()  argument
164 context->renderTarget[index] = renderTarget; in setRenderTarget()
169 context->depthBuffer = depthBuffer; in setDepthBuffer()
174 context->stencilBuffer = stencilBuffer; in setStencilBuffer()
181 context->textureStage[stage].setTexCoordIndex(texCoordIndex); in setTexCoordIndex()
190 context->textureStage[stage].setStageOperation(stageOperation); in setStageOperation()
199 context->textureStage[stage].setFirstArgument(firstArgument); in setFirstArgument()
208 context->textureStage[stage].setSecondArgument(secondArgument); in setSecondArgument()
217 context->textureStage[stage].setThirdArgument(thirdArgument); in setThirdArgument()
226 context->textureStage[stage].setStageOperationAlpha(stageOperationAlpha); in setStageOperationAlpha()
235 context->textureStage[stage].setFirstArgumentAlpha(firstArgumentAlpha); in setFirstArgumentAlpha()
244 context->textureStage[stage].setSecondArgumentAlpha(secondArgumentAlpha); in setSecondArgumentAlpha()
253 context->textureStage[stage].setThirdArgumentAlpha(thirdArgumentAlpha); in setThirdArgumentAlpha()
262 context->textureStage[stage].setFirstModifier(firstModifier); in setFirstModifier()
271 context->textureStage[stage].setSecondModifier(secondModifier); in setSecondModifier()
280 context->textureStage[stage].setThirdModifier(thirdModifier); in setThirdModifier()
289 context->textureStage[stage].setFirstModifierAlpha(firstModifierAlpha); in setFirstModifierAlpha()
298 context->textureStage[stage].setSecondModifierAlpha(secondModifierAlpha); in setSecondModifierAlpha()
307 context->textureStage[stage].setThirdModifierAlpha(thirdModifierAlpha); in setThirdModifierAlpha()
316 context->textureStage[stage].setDestinationArgument(destinationArgument); in setDestinationArgument()
325 context->textureStage[stage].setConstantColor(constantColor); in setConstantColor()
334 context->textureStage[stage].setBumpmapMatrix(element, value); in setBumpmapMatrix()
343 context->textureStage[stage].setLuminanceScale(value); in setLuminanceScale()
352 context->textureStage[stage].setLuminanceOffset(value); in setLuminanceOffset()
361 context->sampler[sampler].setTextureFilter(textureFilter); in setTextureFilter()
370 context->sampler[sampler].setMipmapFilter(mipmapFilter); in setMipmapFilter()
379 context->sampler[sampler].setGatherEnable(enable); in setGatherEnable()
388 context->sampler[sampler].setAddressingModeU(addressMode); in setAddressingModeU()
397 context->sampler[sampler].setAddressingModeV(addressMode); in setAddressingModeV()
406 context->sampler[sampler].setAddressingModeW(addressMode); in setAddressingModeW()
415 context->sampler[sampler].setReadSRGB(sRGB); in setReadSRGB()
424 context->sampler[sampler].setMipmapLOD(bias); in setMipmapLOD()
433 context->sampler[sampler].setBorderColor(borderColor); in setBorderColor()
442 context->sampler[sampler].setMaxAnisotropy(maxAnisotropy); in setMaxAnisotropy()
451 context->sampler[sampler].setSwizzleR(swizzleR); in setSwizzleR()
460 context->sampler[sampler].setSwizzleG(swizzleG); in setSwizzleG()
469 context->sampler[sampler].setSwizzleB(swizzleB); in setSwizzleB()
478 context->sampler[sampler].setSwizzleA(swizzleA); in setSwizzleA()
485 context->setWriteSRGB(sRGB); in setWriteSRGB()
490 context->setColorLogicOpEnabled(colorLogicOpEnabled); in setColorLogicOpEnabled()
495 context->setLogicalOperation(logicalOperation); in setLogicalOperation()
500 context->setDepthBufferEnable(depthBufferEnable); in setDepthBufferEnable()
505 context->depthCompareMode = depthCompareMode; in setDepthCompare()
510 context->alphaCompareMode = alphaCompareMode; in setAlphaCompare()
515 context->depthWriteEnable = depthWriteEnable; in setDepthWriteEnable()
520 context->alphaTestEnable = alphaTestEnable; in setAlphaTestEnable()
525 context->cullMode = cullMode; in setCullMode()
530 context->setColorWriteMask(index, rgbaMask); in setColorWriteMask()
535 context->stencilEnable = stencilEnable; in setStencilEnable()
540 context->stencilCompareMode = stencilCompareMode; in setStencilCompare()
545 context->stencilReference = stencilReference; in setStencilReference()
546 stencil.set(stencilReference, context->stencilMask, context->stencilWriteMask); in setStencilReference()
551 context->stencilReferenceCCW = stencilReferenceCCW; in setStencilReferenceCCW()
552 stencilCCW.set(stencilReferenceCCW, context->stencilMaskCCW, context->stencilWriteMaskCCW); in setStencilReferenceCCW()
557 context->stencilMask = stencilMask; in setStencilMask()
558 stencil.set(context->stencilReference, stencilMask, context->stencilWriteMask); in setStencilMask()
563 context->stencilMaskCCW = stencilMaskCCW; in setStencilMaskCCW()
564 stencilCCW.set(context->stencilReferenceCCW, stencilMaskCCW, context->stencilWriteMaskCCW); in setStencilMaskCCW()
569 context->stencilFailOperation = stencilFailOperation; in setStencilFailOperation()
574 context->stencilPassOperation = stencilPassOperation; in setStencilPassOperation()
579 context->stencilZFailOperation = stencilZFailOperation; in setStencilZFailOperation()
584 context->stencilWriteMask = stencilWriteMask; in setStencilWriteMask()
585 stencil.set(context->stencilReference, context->stencilMask, stencilWriteMask); in setStencilWriteMask()
590 context->stencilWriteMaskCCW = stencilWriteMaskCCW; in setStencilWriteMaskCCW()
591 stencilCCW.set(context->stencilReferenceCCW, context->stencilMaskCCW, stencilWriteMaskCCW); in setStencilWriteMaskCCW()
596 context->twoSidedStencil = enable; in setTwoSidedStencil()
601 context->stencilCompareModeCCW = stencilCompareMode; in setStencilCompareCCW()
606 context->stencilFailOperationCCW = stencilFailOperation; in setStencilFailOperationCCW()
611 context->stencilPassOperationCCW = stencilPassOperation; in setStencilPassOperationCCW()
616 context->stencilZFailOperationCCW = stencilZFailOperation; in setStencilZFailOperationCCW()
745 context->fillMode = fillMode; in setFillMode()
750 context->shadingMode = shadingMode; in setShadingMode()
755 context->setAlphaBlendEnable(alphaBlendEnable); in setAlphaBlendEnable()
760 context->setSourceBlendFactor(sourceBlendFactor); in setSourceBlendFactor()
765 context->setDestBlendFactor(destBlendFactor); in setDestBlendFactor()
770 context->setBlendOperation(blendOperation); in setBlendOperation()
775 context->setSeparateAlphaBlendEnable(separateAlphaBlendEnable); in setSeparateAlphaBlendEnable()
780 context->setSourceBlendFactorAlpha(sourceBlendFactorAlpha); in setSourceBlendFactorAlpha()
785 context->setDestBlendFactorAlpha(destBlendFactorAlpha); in setDestBlendFactorAlpha()
790 context->setBlendOperationAlpha(blendOperationAlpha); in setBlendOperationAlpha()
795 context->alphaReference = alphaReference; in setAlphaReference()
805 context->setGlobalMipmapBias(bias); in setGlobalMipmapBias()
810 setFogRanges(start, context->fogEnd); in setFogStart()
815 setFogRanges(context->fogStart, end); in setFogEnd()
853 context->pixelFogMode = fogMode; in setPixelFogMode()
863 context->occlusionEnabled = enable; in setOcclusionEnabled()
874 context->fogStart = start; in setFogRanges()
875 context->fogEnd = end; in setFogRanges()
893 if(context->pixelShader) in update()
895 state.shaderID = context->pixelShader->getSerialID(); in update()
902 state.depthOverride = context->pixelShader && context->pixelShader->depthOverride(); in update()
903 state.shaderContainsKill = context->pixelShader ? context->pixelShader->containsKill() : false; in update()
905 if(context->alphaTestActive()) in update()
907 state.alphaCompareMode = context->alphaCompareMode; in update()
909 …state.transparencyAntialiasing = context->getMultiSampleCount() > 1 ? transparencyAntialiasing : T… in update()
912 state.depthWriteEnable = context->depthWriteActive(); in update()
914 if(context->stencilActive()) in update()
917 state.stencilCompareMode = context->stencilCompareMode; in update()
918 state.stencilFailOperation = context->stencilFailOperation; in update()
919 state.stencilPassOperation = context->stencilPassOperation; in update()
920 state.stencilZFailOperation = context->stencilZFailOperation; in update()
921 state.noStencilMask = (context->stencilMask == 0xFF); in update()
922 state.noStencilWriteMask = (context->stencilWriteMask == 0xFF); in update()
923 state.stencilWriteMasked = (context->stencilWriteMask == 0x00); in update()
925 state.twoSidedStencil = context->twoSidedStencil; in update()
926 …state.stencilCompareModeCCW = context->twoSidedStencil ? context->stencilCompareModeCCW : state.st… in update()
927 …state.stencilFailOperationCCW = context->twoSidedStencil ? context->stencilFailOperationCCW : stat… in update()
928 …state.stencilPassOperationCCW = context->twoSidedStencil ? context->stencilPassOperationCCW : stat… in update()
929 …state.stencilZFailOperationCCW = context->twoSidedStencil ? context->stencilZFailOperationCCW : st… in update()
930 …state.noStencilMaskCCW = context->twoSidedStencil ? (context->stencilMaskCCW == 0xFF) : state.noSt… in update()
931 …state.noStencilWriteMaskCCW = context->twoSidedStencil ? (context->stencilWriteMaskCCW == 0xFF) : … in update()
932 …state.stencilWriteMaskedCCW = context->twoSidedStencil ? (context->stencilWriteMaskCCW == 0x00) : … in update()
935 if(context->depthBufferActive()) in update()
938 state.depthCompareMode = context->depthCompareMode; in update()
939 … state.quadLayoutDepthBuffer = context->depthBuffer->getInternalFormat() != FORMAT_D32F_LOCKABLE && in update()
940context->depthBuffer->getInternalFormat() != FORMAT_D32FS8_TEXTURE && in update()
941 context->depthBuffer->getInternalFormat() != FORMAT_D32FS8_SHADOW; in update()
944 state.occlusionEnabled = context->occlusionEnabled; in update()
946 state.fogActive = context->fogActive(); in update()
947 state.pixelFogMode = context->pixelFogActive(); in update()
948 state.wBasedFog = context->wBasedFog && context->pixelFogActive() != FOG_NONE; in update()
949 state.perspective = context->perspectiveActive(); in update()
951 if(context->alphaBlendActive()) in update()
954 state.sourceBlendFactor = context->sourceBlendFactor(); in update()
955 state.destBlendFactor = context->destBlendFactor(); in update()
956 state.blendOperation = context->blendOperation(); in update()
957 state.sourceBlendFactorAlpha = context->sourceBlendFactorAlpha(); in update()
958 state.destBlendFactorAlpha = context->destBlendFactorAlpha(); in update()
959 state.blendOperationAlpha = context->blendOperationAlpha(); in update()
962 state.logicalOperation = context->colorLogicOp(); in update()
966 state.colorWriteMask |= context->colorWriteActive(i) << (4 * i); in update()
967 state.targetFormat[i] = context->renderTargetInternalFormat(i); in update()
970 …state.writeSRGB = context->writeSRGB && context->renderTarget[0] && Surface::isSRGBwritable(contex… in update()
971 state.multiSample = context->getMultiSampleCount(); in update()
972 state.multiSampleMask = context->multiSampleMask; in update()
974 if(state.multiSample > 1 && context->pixelShader) in update()
976 state.centroid = context->pixelShader->containsCentroid(); in update()
979 if(!context->pixelShader) in update()
983 state.textureStage[i] = context->textureStage[i].textureStageState(); in update()
986 state.specularAdd = context->specularActive() && context->specularEnable; in update()
991 if(context->pixelShader) in update()
993 if(context->pixelShader->usesSampler(i)) in update()
995 state.sampler[i] = context->sampler[i].samplerState(); in update()
1002 state.sampler[i] = context->sampler[i].samplerState(); in update()
1008 const bool point = context->isDrawPoint(true); in update()
1009 const bool sprite = context->pointSpriteActive(); in update()
1010 const bool flatShading = (context->shadingMode == SHADING_FLAT) || point; in update()
1012 if(context->pixelShaderVersion() < 0x0300) in update()
1018 if(context->textureActive(coordinate, component)) in update()
1029 if(context->textureTransformProject[coordinate] && context->pixelShaderVersion() <= 0x0103) in update()
1031 if(context->textureTransformCount[coordinate] == 2) in update()
1035 else if(context->textureTransformCount[coordinate] == 3) in update()
1039 …else if(context->textureTransformCount[coordinate] == 4 || context->textureTransformCount[coordina… in update()
1050 if(context->colorActive(color, component)) in update()
1062 if(context->fogActive()) in update()
1078 if(context->pixelShader->semantic[interpolant][component].active()) in update()
1082 switch(context->pixelShader->semantic[interpolant][component].usage) in update()
1105 … state.interpolant[interpolant].centroid = context->pixelShader->semantic[interpolant][0].centroid; in update()
1121 const bool integerPipeline = (context->pixelShaderVersion() <= 0x0104); in routine()
1126 generator = new PixelPipeline(state, context->pixelShader); in routine()
1130 generator = new PixelProgram(state, context->pixelShader); in routine()