Lines Matching refs:velems
126 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local
128 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo()
130 velems->fsState.cutIndex = 0; in swr_draw_vbo()
131 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo()
132 velems->fsState.bPartialVertexBuffer = (info->min_index > 0); in swr_draw_vbo()
135 swr_generate_fetch_key(key, velems); in swr_draw_vbo()
136 auto search = velems->map.find(key); in swr_draw_vbo()
137 if (search != velems->map.end()) { in swr_draw_vbo()
138 velems->fsFunc = search->second; in swr_draw_vbo()
141 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo()
143 debug_printf("fetch shader %p\n", velems->fsFunc); in swr_draw_vbo()
144 assert(velems->fsFunc && "Error: FetchShader = NULL"); in swr_draw_vbo()
146 velems->map.insert(std::make_pair(key, velems->fsFunc)); in swr_draw_vbo()
149 ctx->api.pfnSwrSetFetchFunc(ctx->swrContext, velems->fsFunc); in swr_draw_vbo()