Lines Matching refs:vdecl

2784     user_assert(This->state.vdecl, D3DERR_INVALIDCALL);  in NineDevice9_DrawIndexedPrimitive()
2939 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pVertexDecl); in NineDevice9_ProcessVertices() local
2948 bool programmable_vs = This->state.vs && !(This->state.vdecl && This->state.vdecl->position_t); in NineDevice9_ProcessVertices()
2967 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF), in NineDevice9_ProcessVertices()
2969 if (!vdecl) { in NineDevice9_ProcessVertices()
2971 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_ProcessVertices()
2972 if (!vdecl) { in NineDevice9_ProcessVertices()
2973 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_ProcessVertices()
2976 vdecl->fvf = FVF; in NineDevice9_ProcessVertices()
2977 util_hash_table_set(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_ProcessVertices()
2978 NineUnknown_ConvertRefToBind(NineUnknown(vdecl)); in NineDevice9_ProcessVertices()
2987 user_assert(vdecl->position_t || programmable_vs, in NineDevice9_ProcessVertices()
2997 nine_state_prepare_draw_sw(This, vdecl, SrcStartIndex, VertexCount, &so); in NineDevice9_ProcessVertices()
3054 hr = NineVertexDeclaration9_ConvertStreamOutput(vdecl, in NineDevice9_ProcessVertices()
3071 struct NineVertexDeclaration9 *vdecl; in NineDevice9_CreateVertexDeclaration() local
3076 HRESULT hr = NineVertexDeclaration9_new(This, pVertexElements, &vdecl); in NineDevice9_CreateVertexDeclaration()
3078 *ppDecl = (IDirect3DVertexDeclaration9 *)vdecl; in NineDevice9_CreateVertexDeclaration()
3088 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pDecl); in NineDevice9_SetVertexDeclaration() local
3093 nine_bind(&state->vdecl, vdecl); in NineDevice9_SetVertexDeclaration()
3098 if (state->vdecl == vdecl) in NineDevice9_SetVertexDeclaration()
3101 nine_bind(&state->vdecl, vdecl); in NineDevice9_SetVertexDeclaration()
3103 nine_context_set_vertex_declaration(This, vdecl); in NineDevice9_SetVertexDeclaration()
3114 *ppDecl = (IDirect3DVertexDeclaration9 *)This->state.vdecl; in NineDevice9_GetVertexDeclaration()
3124 struct NineVertexDeclaration9 *vdecl; in NineDevice9_SetFVF() local
3131 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_SetFVF()
3132 if (!vdecl) { in NineDevice9_SetFVF()
3133 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_SetFVF()
3136 vdecl->fvf = FVF; in NineDevice9_SetFVF()
3137 util_hash_table_set(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_SetFVF()
3138 NineUnknown_ConvertRefToBind(NineUnknown(vdecl)); in NineDevice9_SetFVF()
3141 This, (IDirect3DVertexDeclaration9 *)vdecl); in NineDevice9_SetFVF()
3148 *pFVF = This->state.vdecl ? This->state.vdecl->fvf : 0; in NineDevice9_GetFVF()