Lines Matching refs:desc

118     struct wined3d_buffer_desc desc;  in d3d_vertex_buffer_create_wined3d_buffer()  local
120 desc.byte_width = buffer->size; in d3d_vertex_buffer_create_wined3d_buffer()
121 desc.usage = WINED3DUSAGE_STATICDECL; in d3d_vertex_buffer_create_wined3d_buffer()
123 desc.usage |= WINED3DUSAGE_WRITEONLY; in d3d_vertex_buffer_create_wined3d_buffer()
125 desc.usage |= WINED3DUSAGE_DYNAMIC; in d3d_vertex_buffer_create_wined3d_buffer()
126 desc.bind_flags = WINED3D_BIND_VERTEX_BUFFER; in d3d_vertex_buffer_create_wined3d_buffer()
128desc.access = WINED3D_RESOURCE_ACCESS_CPU | WINED3D_RESOURCE_ACCESS_MAP_R | WINED3D_RESOURCE_ACCES… in d3d_vertex_buffer_create_wined3d_buffer()
130desc.access = WINED3D_RESOURCE_ACCESS_GPU | WINED3D_RESOURCE_ACCESS_MAP_R | WINED3D_RESOURCE_ACCES… in d3d_vertex_buffer_create_wined3d_buffer()
131 desc.misc_flags = 0; in d3d_vertex_buffer_create_wined3d_buffer()
132 desc.structure_byte_stride = 0; in d3d_vertex_buffer_create_wined3d_buffer()
134 return wined3d_buffer_create(buffer->ddraw->wined3d_device, &desc, in d3d_vertex_buffer_create_wined3d_buffer()
323 …PI d3d_vertex_buffer7_GetVertexBufferDesc(IDirect3DVertexBuffer7 *iface, D3DVERTEXBUFFERDESC *desc) in d3d_vertex_buffer7_GetVertexBufferDesc() argument
329 TRACE("iface %p, desc %p.\n", iface, desc); in d3d_vertex_buffer7_GetVertexBufferDesc()
331 if (!desc) return DDERR_INVALIDPARAMS; in d3d_vertex_buffer7_GetVertexBufferDesc()
339 desc->dwCaps = buffer->Caps; in d3d_vertex_buffer7_GetVertexBufferDesc()
340 desc->dwFVF = buffer->fvf; in d3d_vertex_buffer7_GetVertexBufferDesc()
341 desc->dwNumVertices = wined3d_desc.size / get_flexible_vertex_size(buffer->fvf); in d3d_vertex_buffer7_GetVertexBufferDesc()
433 struct ddraw *ddraw, D3DVERTEXBUFFERDESC *desc) in d3d_vertex_buffer_create() argument
439 TRACE(" dwSize %u\n", desc->dwSize); in d3d_vertex_buffer_create()
440 TRACE(" dwCaps %#x\n", desc->dwCaps); in d3d_vertex_buffer_create()
441 TRACE(" FVF %#x\n", desc->dwFVF); in d3d_vertex_buffer_create()
442 TRACE(" dwNumVertices %u\n", desc->dwNumVertices); in d3d_vertex_buffer_create()
453 buffer->Caps = desc->dwCaps; in d3d_vertex_buffer_create()
454 buffer->fvf = desc->dwFVF; in d3d_vertex_buffer_create()
455 buffer->size = get_flexible_vertex_size(desc->dwFVF) * desc->dwNumVertices; in d3d_vertex_buffer_create()
467 if (!(buffer->wined3d_declaration = ddraw_find_decl(ddraw, desc->dwFVF))) in d3d_vertex_buffer_create()
469 ERR("Failed to find vertex declaration for fvf %#x.\n", desc->dwFVF); in d3d_vertex_buffer_create()