Lines Matching refs:clearState
115 ctx->clearState.stencil = 0x01010101 * ((unsigned &)s & 0xff);
125 ctx->clearState.color = (unsigned(a * 255) << 24) | (unsigned(b * 255) << 16) |
133 assert(sizeof(d) == sizeof(ctx->clearState.depth));
134 ctx->clearState.depth = (int &)d; // bit reinterpretation
135 if (0x80000000 & ctx->clearState.depth) // smaller negative float has bigger int representation, so flip
136 ctx->clearState.depth ^= 0x7fffffff; // since -FLT_MAX is close to -1 when bitcasted
148 const unsigned color = ctx->clearState.color;
154 unsigned r = ctx->clearState.color & 0xf8, g = ctx->clearState.color & 0xfc00,
155 b = ctx->clearState.color & 0xf80000;
166 const unsigned depth = ctx->clearState.depth;
175 const unsigned stencil = ctx->clearState.stencil;