Lines Matching refs:velems
114 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local
116 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo()
118 velems->fsState.cutIndex = 0; in swr_draw_vbo()
119 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo()
120 velems->fsState.bPartialVertexBuffer = (info->min_index > 0); in swr_draw_vbo()
123 swr_generate_fetch_key(key, velems); in swr_draw_vbo()
124 auto search = velems->map.find(key); in swr_draw_vbo()
125 if (search != velems->map.end()) { in swr_draw_vbo()
126 velems->fsFunc = search->second; in swr_draw_vbo()
129 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo()
131 debug_printf("fetch shader %p\n", velems->fsFunc); in swr_draw_vbo()
132 assert(velems->fsFunc && "Error: FetchShader = NULL"); in swr_draw_vbo()
134 velems->map.insert(std::make_pair(key, velems->fsFunc)); in swr_draw_vbo()
137 ctx->api.pfnSwrSetFetchFunc(ctx->swrContext, velems->fsFunc); in swr_draw_vbo()