Lines Matching refs:desc
243 …LT WINAPI d3d8_texture_2d_GetLevelDesc(IDirect3DTexture8 *iface, UINT level, D3DSURFACE_DESC *desc) in d3d8_texture_2d_GetLevelDesc() argument
249 TRACE("iface %p, level %u, desc %p.\n", iface, level, desc); in d3d8_texture_2d_GetLevelDesc()
254 desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format); in d3d8_texture_2d_GetLevelDesc()
255 desc->Type = D3DRTYPE_SURFACE; in d3d8_texture_2d_GetLevelDesc()
256 desc->Usage = d3dusage_from_wined3dusage(wined3d_desc.usage); in d3d8_texture_2d_GetLevelDesc()
257 desc->Pool = d3dpool_from_wined3daccess(wined3d_desc.access, wined3d_desc.usage); in d3d8_texture_2d_GetLevelDesc()
258 desc->Size = wined3d_desc.size; in d3d8_texture_2d_GetLevelDesc()
259 desc->MultiSampleType = wined3d_desc.multisample_type; in d3d8_texture_2d_GetLevelDesc()
260 desc->Width = wined3d_desc.width; in d3d8_texture_2d_GetLevelDesc()
261 desc->Height = wined3d_desc.height; in d3d8_texture_2d_GetLevelDesc()
584 …API d3d8_texture_cube_GetLevelDesc(IDirect3DCubeTexture8 *iface, UINT level, D3DSURFACE_DESC *desc) in d3d8_texture_cube_GetLevelDesc() argument
590 TRACE("iface %p, level %u, desc %p.\n", iface, level, desc); in d3d8_texture_cube_GetLevelDesc()
601 desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format); in d3d8_texture_cube_GetLevelDesc()
602 desc->Type = D3DRTYPE_SURFACE; in d3d8_texture_cube_GetLevelDesc()
603 desc->Usage = d3dusage_from_wined3dusage(wined3d_desc.usage); in d3d8_texture_cube_GetLevelDesc()
604 desc->Pool = d3dpool_from_wined3daccess(wined3d_desc.access, wined3d_desc.usage); in d3d8_texture_cube_GetLevelDesc()
605 desc->Size = wined3d_desc.size; in d3d8_texture_cube_GetLevelDesc()
606 desc->MultiSampleType = wined3d_desc.multisample_type; in d3d8_texture_cube_GetLevelDesc()
607 desc->Width = wined3d_desc.width; in d3d8_texture_cube_GetLevelDesc()
608 desc->Height = wined3d_desc.height; in d3d8_texture_cube_GetLevelDesc()
935 …NAPI d3d8_texture_3d_GetLevelDesc(IDirect3DVolumeTexture8 *iface, UINT level, D3DVOLUME_DESC *desc) in d3d8_texture_3d_GetLevelDesc() argument
941 TRACE("iface %p, level %u, desc %p.\n", iface, level, desc); in d3d8_texture_3d_GetLevelDesc()
946 desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format); in d3d8_texture_3d_GetLevelDesc()
947 desc->Type = D3DRTYPE_VOLUME; in d3d8_texture_3d_GetLevelDesc()
948 desc->Usage = d3dusage_from_wined3dusage(wined3d_desc.usage); in d3d8_texture_3d_GetLevelDesc()
949 desc->Pool = d3dpool_from_wined3daccess(wined3d_desc.access, wined3d_desc.usage); in d3d8_texture_3d_GetLevelDesc()
950 desc->Size = wined3d_desc.size; in d3d8_texture_3d_GetLevelDesc()
951 desc->Width = wined3d_desc.width; in d3d8_texture_3d_GetLevelDesc()
952 desc->Height = wined3d_desc.height; in d3d8_texture_3d_GetLevelDesc()
953 desc->Depth = wined3d_desc.depth; in d3d8_texture_3d_GetLevelDesc()
1097 struct wined3d_resource_desc desc; in texture_init() local
1105 desc.resource_type = WINED3D_RTYPE_TEXTURE_2D; in texture_init()
1106 desc.format = wined3dformat_from_d3dformat(format); in texture_init()
1107 desc.multisample_type = WINED3D_MULTISAMPLE_NONE; in texture_init()
1108 desc.multisample_quality = 0; in texture_init()
1109 desc.usage = usage & WINED3DUSAGE_MASK; in texture_init()
1110 desc.usage |= WINED3DUSAGE_TEXTURE; in texture_init()
1112 desc.usage |= WINED3DUSAGE_SCRATCH; in texture_init()
1113 desc.access = wined3daccess_from_d3dpool(pool, usage) in texture_init()
1115 desc.width = width; in texture_init()
1116 desc.height = height; in texture_init()
1117 desc.depth = 1; in texture_init()
1118 desc.size = 0; in texture_init()
1127 hr = wined3d_texture_create(device->wined3d_device, &desc, 1, levels, flags, in texture_init()
1145 struct wined3d_resource_desc desc; in cubetexture_init() local
1153 desc.resource_type = WINED3D_RTYPE_TEXTURE_2D; in cubetexture_init()
1154 desc.format = wined3dformat_from_d3dformat(format); in cubetexture_init()
1155 desc.multisample_type = WINED3D_MULTISAMPLE_NONE; in cubetexture_init()
1156 desc.multisample_quality = 0; in cubetexture_init()
1157 desc.usage = usage & WINED3DUSAGE_MASK; in cubetexture_init()
1158 desc.usage |= WINED3DUSAGE_LEGACY_CUBEMAP | WINED3DUSAGE_TEXTURE; in cubetexture_init()
1160 desc.usage |= WINED3DUSAGE_SCRATCH; in cubetexture_init()
1161 desc.access = wined3daccess_from_d3dpool(pool, usage) in cubetexture_init()
1163 desc.width = edge_length; in cubetexture_init()
1164 desc.height = edge_length; in cubetexture_init()
1165 desc.depth = 1; in cubetexture_init()
1166 desc.size = 0; in cubetexture_init()
1175 hr = wined3d_texture_create(device->wined3d_device, &desc, 6, levels, flags, in cubetexture_init()
1193 struct wined3d_resource_desc desc; in volumetexture_init() local
1200 desc.resource_type = WINED3D_RTYPE_TEXTURE_3D; in volumetexture_init()
1201 desc.format = wined3dformat_from_d3dformat(format); in volumetexture_init()
1202 desc.multisample_type = WINED3D_MULTISAMPLE_NONE; in volumetexture_init()
1203 desc.multisample_quality = 0; in volumetexture_init()
1204 desc.usage = usage & WINED3DUSAGE_MASK; in volumetexture_init()
1205 desc.usage |= WINED3DUSAGE_TEXTURE; in volumetexture_init()
1207 desc.usage |= WINED3DUSAGE_SCRATCH; in volumetexture_init()
1208 desc.access = wined3daccess_from_d3dpool(pool, usage); in volumetexture_init()
1209 desc.width = width; in volumetexture_init()
1210 desc.height = height; in volumetexture_init()
1211 desc.depth = depth; in volumetexture_init()
1212 desc.size = 0; in volumetexture_init()
1218 hr = wined3d_texture_create(device->wined3d_device, &desc, 1, levels, 0, in volumetexture_init()