| 979 | } |
| 980 | |
| 981 | PipelineState GetDefaultPipelineState() |
| 982 | { |
| 983 | PipelineState ps; |
| 984 | ps.m_WriteColorMask = DM_GRAPHICS_STATE_WRITE_R | DM_GRAPHICS_STATE_WRITE_G | DM_GRAPHICS_STATE_WRITE_B | DM_GRAPHICS_STATE_WRITE_A; |
| 985 | ps.m_WriteDepth = 1; |
| 986 | ps.m_PrimtiveType = PRIMITIVE_TRIANGLES; |
| 987 | ps.m_DepthTestEnabled = 0; |
| 988 | ps.m_DepthTestFunc = COMPARE_FUNC_LESS; |
| 989 | ps.m_BlendEnabled = 0; |
| 990 | ps.m_BlendSrcFactor = BLEND_FACTOR_ZERO; |
| 991 | ps.m_BlendDstFactor = BLEND_FACTOR_ZERO; |
| 992 | ps.m_BlendSrcFactorAlpha = BLEND_FACTOR_ZERO; |
| 993 | ps.m_BlendDstFactorAlpha = BLEND_FACTOR_ZERO; |
| 994 | ps.m_BlendEquationColor = BLEND_EQUATION_ADD; |
| 995 | ps.m_BlendEquationAlpha = BLEND_EQUATION_ADD; |
| 996 | ps.m_StencilEnabled = 0; |
| 997 | ps.m_ScissorTestEnabled = 0; |
| 998 | ps.m_StencilFrontOpFail = STENCIL_OP_KEEP; |
| 999 | ps.m_StencilFrontOpDepthFail = STENCIL_OP_KEEP; |
| 1000 | ps.m_StencilFrontOpPass = STENCIL_OP_KEEP; |
| 1001 | ps.m_StencilFrontTestFunc = COMPARE_FUNC_ALWAYS; |
| 1002 | ps.m_StencilBackOpFail = STENCIL_OP_KEEP; |
| 1003 | ps.m_StencilBackOpDepthFail = STENCIL_OP_KEEP; |
| 1004 | ps.m_StencilBackOpPass = STENCIL_OP_KEEP; |
| 1005 | ps.m_StencilBackTestFunc = COMPARE_FUNC_ALWAYS; |
| 1006 | ps.m_StencilWriteMask = 0xff; |
| 1007 | ps.m_StencilCompareMask = 0xff; |
| 1008 | ps.m_StencilReference = 0x0; |
| 1009 | ps.m_CullFaceEnabled = 0; |
| 1010 | ps.m_CullFaceType = FACE_TYPE_BACK; |
| 1011 | ps.m_FaceWinding = FACE_WINDING_CCW; |
| 1012 | ps.m_PolygonOffsetFillEnabled = 0; |
| 1013 | return ps; |
| 1014 | } |
| 1015 | |
| 1016 | // The goal is to find a supported compression format, since they're smaller than the uncompressed ones |
| 1017 | // The user can also choose RGB(a) 16BPP as the fallback if they wish to have smaller size than full RGB(a) |
no outgoing calls
no test coverage detected