Lines Matching refs:compareFuncs
743 static const uint32_t compareFuncs[] = {GL_NEVER, GL_ALWAYS, GL_LESS, GL_LEQUAL, in randomDepthStencilState() local
760 rnd.choose<uint32_t>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(compareFuncs)); in randomDepthStencilState()
775 …ms.depthFunc = rnd.choose<uint32_t>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(compareFuncs)); in randomDepthStencilState()
787 …} compareFuncs[] = {{"never", GL_NEVER}, {"always", GL_ALWAYS}, {"less", GL_LESS}, {"lequal"… in init() local
819 for (int stencilFunc = 0; stencilFunc < DE_LENGTH_OF_ARRAY(compareFuncs) + 1; stencilFunc++) in init()
822 for (int depthFunc = 0; depthFunc < DE_LENGTH_OF_ARRAY(compareFuncs) + 1; depthFunc++) in init()
826 … bool hasStencilFunc = de::inBounds(stencilFunc, 0, DE_LENGTH_OF_ARRAY(compareFuncs)); in init()
827 bool hasDepthFunc = de::inBounds(depthFunc, 0, DE_LENGTH_OF_ARRAY(compareFuncs)); in init()
830 name << "stencil_" << compareFuncs[stencilFunc].name << "_"; in init()
835 name << "depth_" << compareFuncs[depthFunc].name; in init()
839 params.depthFunc = hasDepthFunc ? compareFuncs[depthFunc].func : 0; in init()
854 … params.stencil[visible].function = hasStencilFunc ? compareFuncs[stencilFunc].func : 0; in init()