Lines Matching refs:vdecl
3041 user_assert(This->state.vdecl, D3DERR_INVALIDCALL); in NineDevice9_DrawIndexedPrimitive()
3215 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pVertexDecl); in NineDevice9_ProcessVertices() local
3225 bool programmable_vs = This->state.vs && !(This->state.vdecl && This->state.vdecl->position_t); in NineDevice9_ProcessVertices()
3246 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF), in NineDevice9_ProcessVertices()
3248 if (!vdecl) { in NineDevice9_ProcessVertices()
3250 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_ProcessVertices()
3251 if (!vdecl) { in NineDevice9_ProcessVertices()
3252 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_ProcessVertices()
3255 vdecl->fvf = FVF; in NineDevice9_ProcessVertices()
3256 _mesa_hash_table_insert(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_ProcessVertices()
3257 NineUnknown_ConvertRefToBind(NineUnknown(vdecl)); in NineDevice9_ProcessVertices()
3266 user_assert(vdecl->position_t || programmable_vs, in NineDevice9_ProcessVertices()
3276 nine_state_prepare_draw_sw(This, vdecl, SrcStartIndex, VertexCount, &so); in NineDevice9_ProcessVertices()
3331 hr = NineVertexDeclaration9_ConvertStreamOutput(vdecl, in NineDevice9_ProcessVertices()
3348 struct NineVertexDeclaration9 *vdecl; in NineDevice9_CreateVertexDeclaration() local
3355 HRESULT hr = NineVertexDeclaration9_new(This, pVertexElements, &vdecl); in NineDevice9_CreateVertexDeclaration()
3357 *ppDecl = (IDirect3DVertexDeclaration9 *)vdecl; in NineDevice9_CreateVertexDeclaration()
3367 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pDecl); in NineDevice9_SetVertexDeclaration() local
3372 nine_bind(&state->vdecl, vdecl); in NineDevice9_SetVertexDeclaration()
3377 if (state->vdecl == vdecl) in NineDevice9_SetVertexDeclaration()
3380 nine_bind(&state->vdecl, vdecl); in NineDevice9_SetVertexDeclaration()
3382 nine_context_set_vertex_declaration(This, vdecl); in NineDevice9_SetVertexDeclaration()
3393 *ppDecl = (IDirect3DVertexDeclaration9 *)This->state.vdecl; in NineDevice9_GetVertexDeclaration()
3403 struct NineVertexDeclaration9 *vdecl; in NineDevice9_SetFVF() local
3410 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_SetFVF()
3411 if (!vdecl) { in NineDevice9_SetFVF()
3412 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_SetFVF()
3415 vdecl->fvf = FVF; in NineDevice9_SetFVF()
3416 _mesa_hash_table_insert(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_SetFVF()
3417 NineUnknown_ConvertRefToBind(NineUnknown(vdecl)); in NineDevice9_SetFVF()
3420 This, (IDirect3DVertexDeclaration9 *)vdecl); in NineDevice9_SetFVF()
3428 *pFVF = This->state.vdecl ? This->state.vdecl->fvf : 0; in NineDevice9_GetFVF()