Home | History | Annotate | Download | only in Shader

Lines Matching defs:If

34 		if(!shader || shader->getShaderModel() < 0x0200 || forceClearRegisters)
52 #if PERF_PROFILE
77 if(interpolateZ())
83 if(state.multiSample > 1)
94 if(earlyDepthTest)
102 If(depthPass || Bool(!earlyDepthTest))
104 #if PERF_PROFILE
114 if(state.centroid)
133 if(interpolateW())
138 if(state.centroid)
148 if(state.interpolant[interpolant].component & (1 << component))
150 if(!state.interpolant[interpolant].centroid)
185 if(state.fog.component)
192 #if PERF_PROFILE
198 if(colorUsed())
200 #if PERF_PROFILE
206 #if PERF_PROFILE
212 if((shader && shader->containsKill()) || state.alphaTestActive())
222 If(alphaPass)
224 if(!earlyDepthTest)
232 #if PERF_PROFILE
236 If(depthPass || Bool(earlyDepthTest))
240 if(state.multiSampleMask & (1 << q))
244 if(state.occlusionEnabled)
251 if(colorUsed())
253 #if PERF_PROFILE
261 #if PERF_PROFILE
269 if(state.multiSampleMask & (1 << q))
275 #if PERF_PROFILE
284 if(!flat)
289 if(perspective)
300 if(!state.stencilActive)
309 if(q > 0)
317 if(!state.noStencilMask)
324 if(state.twoSidedStencil)
326 if(!state.noStencilMaskCCW)
389 if(!state.depthTestActive)
396 if(shader && shader->depthOverride())
398 if(complementaryDepthBuffer)
411 if(!state.quadLayoutDepthBuffer)
421 if(q > 0)
428 if(state.depthCompareMode != DEPTH_NEVER || (state.depthCompareMode != DEPTH_ALWAYS && !state.depthWriteEnable))
430 if(!state.quadLayoutDepthBuffer)
459 if(complementaryDepthBuffer)
469 if(complementaryDepthBuffer)
479 if(complementaryDepthBuffer)
489 if(complementaryDepthBuffer)
515 if(state.stencilActive)
587 if(!state.fogActive)
592 if(state.pixelFogMode != FOG_NONE)
617 if(state.pixelFogMode != FOG_NONE)
619 if(state.wBasedFog)
625 if(complementaryDepthBuffer)
660 if(!state.depthWriteEnable)
667 if(shader && shader->depthOverride())
669 if(complementaryDepthBuffer)
682 if(!state.quadLayoutDepthBuffer)
692 if(q > 0)
699 if(state.depthCompareMode != DEPTH_NEVER || (state.depthCompareMode != DEPTH_ALWAYS && !state.depthWriteEnable))
701 if(!state.quadLayoutDepthBuffer)
717 if(!state.quadLayoutDepthBuffer)
731 if(!state.stencilActive)
736 if(state.stencilPassOperation == OPERATION_KEEP && state.stencilZFailOperation == OPERATION_KEEP && state.stencilFailOperation == OPERATION_KEEP)
738 if(!state.twoSidedStencil || (state.stencilPassOperationCCW == OPERATION_KEEP && state.stencilZFailOperationCCW == OPERATION_KEEP && state.stencilFailOperationCCW == OPERATION_KEEP))
744 if(state.stencilWriteMasked && (!state.twoSidedStencil || state.stencilWriteMaskedCCW))
751 if(q > 0)
761 if(!state.noStencilWriteMask)
769 if(state.twoSidedStencil)
775 if(!state.noStencilWriteMaskCCW)
803 if(stencilZFailOperation != stencilPassOperation)
808 if(stencilFailOperation != stencilPassOperation || stencilFailOperation != stencilZFailOperation)
813 if(stencilFailOperation != stencilPassOperation || stencilFailOperation != stencilZFailOperation)
815 if(state.depthTestActive && stencilZFailOperation != stencilPassOperation) // zMask valid and values not the same
1164 if((postBlendSRGB && state.writeSRGB) || isSRGB(index))
1172 if(!state.alphaBlendActive)
1187 if(state.sourceBlendFactor != BLEND_ONE && state.sourceBlendFactor != BLEND_ZERO)
1194 if(state.destBlendFactor != BLEND_ONE && state.destBlendFactor != BLEND_ZERO)
1248 if(state.sourceBlendFactorAlpha != BLEND_ONE && state.sourceBlendFactorAlpha != BLEND_ZERO)
1253 if(state.destBlendFactorAlpha != BLEND_ONE && state.destBlendFactorAlpha != BLEND_ZERO)
1291 if(state.logicalOperation == LOGICALOP_COPY)
1386 if((postBlendSRGB && state.writeSRGB) || isSRGB(index))
1391 if(exactColorRounding)
1455 if(state.targetFormat[index] == FORMAT_X8R8G8B8 || rgbaWriteMask == 0x7)
1493 if(state.targetFormat[index] == FORMAT_X8B8G8R8 || state.targetFormat[index] == FORMAT_SRGB8_X8 || rgbaWriteMask == 0x7)
1560 if(state.depthTestActive)
1569 if(state.stencilActive)
1583 if((bgraWriteMask & 0x00000007) != 0x00000007)
1601 if((bgraWriteMask & 0x00000007) != 0x00000007)
1620 // if((state.targetFormat[index] == FORMAT_A8G8R8B8Q && bgraWriteMask != 0x0000000F) ||
1637 // if
1658 if((state.targetFormat[index] == FORMAT_A8R8G8B8 && bgraWriteMask != 0x0000000F) ||
1676 if((state.targetFormat[index] == FORMAT_A8R8G8B8 && bgraWriteMask != 0x0000000F) ||
1704 if(masked)
1720 if(masked)
1735 if((rgbaWriteMask & 0x00000003) != 0x0)
1746 if((rgbaWriteMask & 0x3) != 0x3)
1760 if(rgbaWriteMask & 0x00000001)
1777 if(rgbaWriteMask & 0x00000008)
1799 if((rgbaWriteMask & 0x00000003) != 0x00000003)
1816 if((rgbaWriteMask & 0x00000003) != 0x00000003)
1837 if(rgbaWriteMask != 0x0000000F)
1854 if(rgbaWriteMask != 0x0000000F)
1873 if(rgbaWriteMask != 0x0000000F)
1890 if(rgbaWriteMask != 0x0000000F)
2031 if(!state.alphaBlendActive)
2044 if(Surface::isFloatFormat(state.targetFormat[index]))
2048 else if(Surface::isNonNormalizedInteger(state.targetFormat[index]))
2093 if(state.targetFormat[index] == FORMAT_X32B32G32R32F ||
2103 if((postBlendSRGB && state.writeSRGB) || isSRGB(index))
2117 if(state.sourceBlendFactor != BLEND_ONE && state.sourceBlendFactor != BLEND_ZERO)
2124 if(state.destBlendFactor != BLEND_ONE && state.destBlendFactor != BLEND_ZERO)
2178 if(state.sourceBlendFactorAlpha != BLEND_ONE && state.sourceBlendFactorAlpha != BLEND_ZERO)
2183 if(state.destBlendFactorAlpha != BLEND_ONE && state.destBlendFactorAlpha != BLEND_ZERO)
2263 if(state.depthTestActive)
2272 if(state.stencilActive)
2285 if(rgbaWriteMask & 0x00000001)
2316 if(rgbaWriteMask & 0x00000001)
2332 if(state.targetFormat[index] == FORMAT_R16I)
2364 if(rgbaWriteMask & 0x00000001)
2375 if(state.targetFormat[index] == FORMAT_R8I)
2400 if((rgbaWriteMask & 0x00000003) != 0x00000003)
2417 if((rgbaWriteMask & 0x00000003) != 0x00000003)
2434 if((rgbaWriteMask & 0x00000003) != 0x0)
2442 if((rgbaWriteMask & 0x3) != 0x3)
2455 if((rgbaWriteMask & 0x3) != 0x3)
2464 if((rgbaWriteMask & 0x00000003) != 0x0)
2474 if(state.targetFormat[index] == FORMAT_G8R8I)
2484 if((rgbaWriteMask & 0x3) != 0x3)
2508 if(rgbaWriteMask != 0x0000000F)
2525 if(rgbaWriteMask != 0x0000000F)
2544 if(rgbaWriteMask != 0x0000000F)
2561 if(rgbaWriteMask != 0x0000000F)
2577 if((rgbaWriteMask & 0x0000000F) != 0x0)
2585 if((rgbaWriteMask & 0xF) != 0xF)
2598 if((rgbaWriteMask & 0xF) != 0xF)
2607 if((rgbaWriteMask & 0x0000000F) != 0x0)
2613 if(state.targetFormat[index] == FORMAT_A8B8G8R8I)
2623 if(rgbaWriteMask != 0xF)
2631 if(state.targetFormat[index] == FORMAT_A8B8G8R8I)
2641 if(rgbaWriteMask != 0xF)